Module: wine Branch: master Commit: be180bed7cdde56cb8d4d7517f9e699546b6af55 URL: http://source.winehq.org/git/wine.git/?a=commit;h=be180bed7cdde56cb8d4d7517f...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Jun 7 11:06:28 2011 +0200
wined3d: cfg can never be NULL in wined3d_check_pixel_format_depth().
---
dlls/wined3d/directx.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 4b77d5e..02cb33c 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -2974,9 +2974,6 @@ static BOOL wined3d_check_pixel_format_depth(const struct wined3d_gl_info *gl_in BYTE depthSize, stencilSize; BOOL lockable = FALSE;
- if(!cfg) - return FALSE; - if (!getDepthStencilBits(format, &depthSize, &stencilSize)) { ERR("Unable to check compatibility for format %s.\n", debug_d3dformat(format->id));