wined3d: fix check for P8 render target

Alexander Dorofeyev alexd4 at
Sat Dec 22 04:51:37 CST 2007


I think this part of d3dfmt_p8_init_palette has a bug, because it appears to be
checking that render target is a render target. Incorrectly going into
index_in_alpha codepath here causes this bug:

in Aliens vs Predator 1 game - it prefers P8 textures and sets color key on some
textures for transparency and alpha channel is wrong on such textures in game.

     dlls/wined3d/surface.c |    7 ++-----
     1 files changed, 2 insertions(+), 5 deletions(-)

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

More information about the wine-patches mailing list