[D3D] Fixed XYZRHW vertex handling
Christian Costa
titan.costa at wanadoo.fr
Thu Aug 5 10:36:10 CDT 2004
This one with a diff done from wine's root directory
Christian Costa wrote:
> 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 --------------
--- dlls/ddraw/d3ddevice/mesa_old.c 2004-08-05 15:11:43.000000000 +0100
+++ dlls/ddraw/d3ddevice/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