Marcus Meissner : wined3d: Remove a useless NULL check (Coverity).

Alexandre Julliard julliard at winehq.org
Tue Aug 30 12:48:39 CDT 2011


Module: wine
Branch: master
Commit: 7023964865aa5a09a749f2e58c4583197b7519a5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7023964865aa5a09a749f2e58c4583197b7519a5

Author: Marcus Meissner <meissner at suse.de>
Date:   Tue Aug 30 15:51:27 2011 +0200

wined3d: Remove a useless NULL check (Coverity).

---

 dlls/wined3d/context.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index de0933c..e44ee81 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -2076,7 +2076,7 @@ void context_apply_blit_state(struct wined3d_context *context, struct wined3d_de
             ENTER_GL();
             context_apply_fbo_state_blit(context, GL_FRAMEBUFFER, rt, NULL, rt->draw_binding);
             LEAVE_GL();
-            if (rt && rt->resource.format->id != WINED3DFMT_NULL)
+            if (rt->resource.format->id != WINED3DFMT_NULL)
                 rt_mask = 1;
             else
                 rt_mask = 0;




More information about the wine-cvs mailing list