Commit f5149e65 authored by Roderick Colenbrander's avatar Roderick Colenbrander Committed by Alexandre Julliard

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

parent 14abaa57
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment