wined3d: add zero/near zero vertex rhw special case

Alexander Dorofeyev alexd4 at
Tue Dec 25 00:30:49 CST 2007

Hi. Some issues in Aliens vs Predator 1 menu drawing are caused  by failure to
draw a large black quad which it uses to clear the screen. It appears that for
its vertices the app forgets (?) to set rhw, so, unlike most other times, it
happens to be zero. But it works on native win9x and in very old versions of
wine (like 0.9.15), in latter case because there this sort of situation was
handled as a special case (but not anymore). Bringing back the special case from
the wine code around 0.9.15 fixes this problem.

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

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

More information about the wine-patches mailing list