[PATCH 5/5] wined3d: Get rid of a redundant NULL check in wined3d_context_gl_acquire() (Coverity).

Henri Verbeet hverbeet at codeweavers.com
Tue Aug 13 03:31:40 CDT 2019


Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 dlls/wined3d/context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 6742f21cc80..2d22409d50b 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -4238,7 +4238,7 @@ struct wined3d_context *wined3d_context_gl_acquire(const struct wined3d_device *
     {
         context_gl = current_context;
     }
-    else if (texture && !wined3d_resource_is_offscreen(&texture->resource))
+    else if (!wined3d_resource_is_offscreen(&texture->resource))
     {
         TRACE("Rendering onscreen.\n");
 
-- 
2.11.0




More information about the wine-devel mailing list