[WINED3D] Fix flow control instructions number of parameters

Ivan Gyurdiev ivg2 at cornell.edu
Sun Apr 16 04:25:15 CDT 2006


The flow control instructions spec seems in particularly bad shape. The 
num_params is incorrect in half of those instructions, and is 
out-of-sync with the software shaders function in the other half. This 
makes the games segfault once we try to rely on num_params (which we do 
even to skip over those instructions since we don't support them without 
GLSL).

Changelog:

- else, endif, break take 0 parameters [not 2]
- if, rep take 1 parameter [not 2]
- breakp takes 1 parameter [not 2]
- move all flow control instructions in one place
- sync software shaders signatures with this

With this patch, Painkiller actually starts up, and the menus work fine, 
and gets in the game (after which some awful graphics output comes up, 
but that's a significant improvement over a segfault).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine.flow_control_ins.diff
Type: text/x-patch
Size: 11781 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060416/4dbaaf17/wine.flow_control_ins-0001.diff


More information about the wine-patches mailing list