wined3d: Get resource info from the texture in context_generate_rt_mask_no_fbo().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-03-04 00:05:23 +01:00 committed by Alexandre Julliard
parent 6b2567e42c
commit cea2ec9ab6
1 changed files with 1 additions and 1 deletions

View File

@ -2439,7 +2439,7 @@ GLenum context_get_offscreen_gl_buffer(const struct wined3d_context *context)
static DWORD context_generate_rt_mask_no_fbo(const struct wined3d_context *context, const struct wined3d_surface *rt)
{
if (!rt || rt->resource.format->id == WINED3DFMT_NULL)
if (!rt || rt->container->resource.format->id == WINED3DFMT_NULL)
return 0;
else if (rt->container->swapchain)
return context_generate_rt_mask_from_surface(rt);