wined3d: fix check for P8 render target

Roderick Colenbrander thunderbird2k at gmx.net
Sat Dec 22 11:24:15 CST 2007


> Hi.
> 
> Yes, exactly, the AVP1 game is using p8 textures and color keys on some of
> them
> for transparency.
> 
> The thing is, the "index_in_alpha" hack DOES get enabled on its P8 3D
> textures,
> and that's the problem I'm trying to fix. I don't see the "primary render
> target
> is p8" check in the code, instead it looks like it checks that
> render_targets[0]
> is a render target.

Try to see if the attached patch fixes the problem. It seems that at some point I didn't check whether the target is P8 in this function while I check for it in other places. I have checked it using all my p8 testcases and it seems to work fine but I don't have AVP. If it works I'll submit it.

Roderick


-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Make-sure-the-format-of-the-primary-render-target-is.patch
Type: text/x-diff
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20071222/d72c3bb2/attachment.patch 


More information about the wine-devel mailing list