Commit be180bed authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: cfg can never be NULL in wined3d_check_pixel_format_depth().

parent fec6137d
...@@ -2974,9 +2974,6 @@ static BOOL wined3d_check_pixel_format_depth(const struct wined3d_gl_info *gl_in ...@@ -2974,9 +2974,6 @@ static BOOL wined3d_check_pixel_format_depth(const struct wined3d_gl_info *gl_in
BYTE depthSize, stencilSize; BYTE depthSize, stencilSize;
BOOL lockable = FALSE; BOOL lockable = FALSE;
if(!cfg)
return FALSE;
if (!getDepthStencilBits(format, &depthSize, &stencilSize)) if (!getDepthStencilBits(format, &depthSize, &stencilSize))
{ {
ERR("Unable to check compatibility for format %s.\n", debug_d3dformat(format->id)); ERR("Unable to check compatibility for format %s.\n", debug_d3dformat(format->id));
......
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