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:
parent
6b2567e42c
commit
cea2ec9ab6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue