From f8c1c1778a6faaf5de5662a39ae6174bc5fba3c1 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Fri, 11 Mar 2016 16:01:38 +0100 Subject: [PATCH] wined3d: "render_targets" is never NULL in context_find_fbo_entry(). Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- 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 415eedf7b0a..37c0fe06c3a 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -472,7 +472,7 @@ static struct fbo_entry *context_find_fbo_entry(struct wined3d_context *context, UINT object_count = gl_info->limits.buffers + 1; unsigned int i; - if (depth_stencil && render_targets && render_targets[0]) + if (depth_stencil && render_targets[0]) { if (depth_stencil->resource.width < render_targets[0]->resource.width || depth_stencil->resource.height < render_targets[0]->resource.height)