wined3d: Check real depth/stencil capabilities based on WGL pixel formats.
This commit is contained in:
parent
14abaa5709
commit
f5149e651e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue