Module: wine Branch: master Commit: 9bbe8ec59027aeb2d4558bb85a8acf75cc9c79fd URL: https://source.winehq.org/git/wine.git/?a=commit;h=9bbe8ec59027aeb2d4558bb85...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Aug 13 13:19:40 2019 +0430
wined3d: Get rid of a redundant NULL check in wined3d_context_gl_acquire() (Coverity).
Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 6742f21..2d22409 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");