[PATCH 4/5] wined3d: cfg can never be NULL in wined3d_check_pixel_format_color().

Henri Verbeet hverbeet at codeweavers.com
Tue Jun 7 12:44:48 CDT 2011


---
 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 09c4de1..502b5d7 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -2936,9 +2936,6 @@ static BOOL wined3d_check_pixel_format_color(const struct wined3d_gl_info *gl_in
 {
     BYTE redSize, greenSize, blueSize, alphaSize, colorBits;
 
-    if(!cfg)
-        return FALSE;
-
     /* Float formats need FBOs. If FBOs are used this function isn't called */
     if (format->flags & WINED3DFMT_FLAG_FLOAT) return FALSE;
 
-- 
1.7.3.4




More information about the wine-patches mailing list