wined3d: Get resource info from the texture in context_restore().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
40ef70eb39
commit
193ca794fc
|
@ -1315,7 +1315,7 @@ void context_restore(struct wined3d_context *context, struct wined3d_surface *re
|
|||
if (context->current_rt != restore)
|
||||
{
|
||||
context_release(context);
|
||||
context = context_acquire(restore->resource.device, restore);
|
||||
context = context_acquire(restore->container->resource.device, restore);
|
||||
}
|
||||
|
||||
context_release(context);
|
||||
|
|
Loading…
Reference in New Issue