[PATCH] Reflect real WGL pixel formats capabilities instead of lieing.

Roderick Colenbrander thunderbird2k at gmx.net
Mon Feb 25 17:23:14 CST 2008


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

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index c3afa7f..58a2781 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1613,10 +1613,10 @@ static BOOL IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt(const WineD3D_Pixel
         return FALSE;
     }
 
-    if(cfg->depthSize < depthSize)
+    if(cfg->depthSize != depthSize)
         return FALSE;
 
-    if(cfg->stencilSize < stencilSize)
+    if(cfg->stencilSize != stencilSize)
         return FALSE;
 
     return TRUE;
-- 
1.5.3.4


--========GMX218371203981733343504--



More information about the wine-patches mailing list