From f5149e651e504b80f09e866becfc06aa096cceb7 Mon Sep 17 00:00:00 2001 From: Roderick Colenbrander Date: Tue, 26 Feb 2008 00:23:14 +0100 Subject: [PATCH] wined3d: Check real depth/stencil capabilities based on WGL pixel formats. --- dlls/wined3d/directx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index c3afa7ffaed..58a27815185 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; -- 2.11.4.GIT