[PATCH 5/5] wined3d: Get rid of a redundant NULL check in wined3d_context_gl_acquire() (Coverity).
13 Aug
2019
13 Aug
'19
3:31 a.m.
Signed-off-by: Henri Verbeet <hverbeet(a)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
2403
Age (days ago)
2403
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henri Verbeet