D3D8 fbconfig fix

Roderick Colenbrander thunderbird2k at gmx.net
Tue Feb 7 07:56:42 CST 2006


Hi,

Right now the ActiveRender code in D3D8 requests a GLX_DEPTH_SIZE of 32 in 
case the direct3d color format also has a depth of 32. As verified on various 
linux drivers (Ati fglrx, Ati (dri) and Nvidia) the color depth needs to be 
24. This patch sets the depth to 24 and it fixes bugs in 3dmark2001 and other 
programs.

Roderick
-------------- next part --------------
Index: dlls/d3d8/device.c
===================================================================
RCS file: /home/wine/wine/dlls/d3d8/device.c,v
retrieving revision 1.139
diff -u -r1.139 device.c
--- dlls/d3d8/device.c	5 Feb 2006 12:54:36 -0000	1.139
+++ dlls/d3d8/device.c	7 Feb 2006 13:50:48 -0000
@@ -4667,7 +4667,7 @@
     break;
     
   case D3DFMT_D32:
-    PUSH2(GLX_DEPTH_SIZE,   32);
+    PUSH2(GLX_DEPTH_SIZE,   24);
     break;
 
   default:


More information about the wine-patches mailing list