wined3d: Check real depth/stencil capabilities based on WGL pixel formats.

This commit is contained in:
Roderick Colenbrander 2008-02-26 00:23:14 +01:00 committed by Alexandre Julliard
parent 14abaa5709
commit f5149e651e
1 changed files with 2 additions and 2 deletions

View File

@ -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;