Roderick Colenbrander : d3d8: fbconfig fix.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 7 09:57:41 CST 2006


Module: wine
Branch: refs/heads/master
Commit: a874487f9544da03f5354b3e7aa00f813f68a90d
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=a874487f9544da03f5354b3e7aa00f813f68a90d

Author: Roderick Colenbrander <thunderbird2k at gmx.net>
Date:   Tue Feb  7 16:51:08 2006 +0100

d3d8: fbconfig fix.
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.

---

 dlls/d3d8/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index 6710164..25afed7 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -4667,7 +4667,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_Acti
     break;
     
   case D3DFMT_D32:
-    PUSH2(GLX_DEPTH_SIZE,   32);
+    PUSH2(GLX_DEPTH_SIZE,   24);
     break;
 
   default:




More information about the wine-cvs mailing list