wined3d: fix check for P8 render target

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


Hi.

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:

http://bugs.winehq.org/show_bug.cgi?id=10797

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 : http://www.winehq.org/pipermail/wine-patches/attachments/20071222/61dbd3f9/attachment.bin 


More information about the wine-patches mailing list