[D3D] Fixed XYZRHW vertex handling

Christian Costa titan.costa at wanadoo.fr
Thu Aug 5 09:19:23 CDT 2004


Hi,

This patch fixes graphics corruption in Revolt demo.
The game works fine now.

Changelog:
Fixed XYZRHW vertex handling.

Christian Costa   titan.costa at wanadoo.fr

-------------- next part --------------
--- mesa_old.c	2004-08-05 15:11:43.000000000 +0100
+++ mesa.c	2004-08-05 12:50:45.000000000 +0100
@@ -1172,7 +1172,7 @@
     glVertex3fv(coords);
 }
 inline static void handle_xyzrhw(D3DVALUE *coords) {
-    if (coords[3] < 1e-8)
+    if ((coords[3] < 1e-8) && (coords[3] > -1e-8))
         glVertex3fv(coords);
     else {
         GLfloat w = 1.0 / coords[3];


More information about the wine-patches mailing list