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:
Henri Verbeet 2016-03-04 00:05:21 +01:00 committed by Alexandre Julliard
parent 40ef70eb39
commit 193ca794fc
1 changed files with 1 additions and 1 deletions

View File

@ -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);