wined3d: dirtify colorkey state in IWineD3DDeviceImpl_SetTexture

Alexander Dorofeyev alexd4 at
Thu Dec 27 00:27:21 CST 2007


Colorkey emulation by alpha test should be disabled when game sets no texture 
(or texture without colorkey) and reenabled when needed. Dirtifying a state 
here, so that state_alpha will be called, fixes the problem.

This is needed to fix another issue found in Aliens vs Predator 1 menu 
rendering. The game draws some color bands in one submenu, to do so it disables 
alpha blending and draws untextured quads with diffuse color that has zero in
alpha component. In wine nothing appears because somewhere earlier wined3d does 
its magic to emulate color key that includes setting up alpha test, and this 
isn't disabled when game sets no texture.
         dlls/wined3d/device.c |    3 +++
         1 files changed, 3 insertions(+), 0 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: f59e80a11490d0127f033c7a3ce83506b63c24e8.diff
Type: text/x-patch
Size: 658 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list