WineD3D: Add empty transform states to the state table
Stefan Dösinger
stefandoesinger at gmx.at
Thu Dec 28 11:57:16 CST 2006
This patch adds empty transform states to the state table.
There's one problem though: The highest state has the value 512, but
only the first 23 and 255 are really intersting. D3DTS_WORLDMATRIX(0)
used to have the value 1 in earlier dx versions. 23-254 are
undefined, and most likely 256-512 will never be implemented because
there is no common opengl extension for that feature.
Yet an application can set those states and we need to catch them
somehow. This patch adds all of them to the table, keeps the code
nice but adds a bunch of uninteresting entries to the table.
Alternatively I can catch them with an if block in SetTransform and
map WINED3DRS_WORLDMATRIX(0) to STATE_TRANSFORM(1). This patch is my
preference, but there are alternatives.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-WineD3D-Add-empty-transform-states-to-the-state-table.txt.bz2
Type: application/octet-stream
Size: 2720 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061228/6f335467/0002-WineD3D-Add-empty-transform-states-to-the-state-table.txt.obj
More information about the wine-patches
mailing list