Module: wine Branch: master Commit: f5149e651e504b80f09e866becfc06aa096cceb7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f5149e651e504b80f09e866bec... Author: Roderick Colenbrander <thunderbird2k(a)gmx.net> Date: Tue Feb 26 00:23:14 2008 +0100 wined3d: Check real depth/stencil capabilities based on WGL pixel formats. --- 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;