From 193ca794fc5e7ecfb8a692324f8bd05df74d79d0 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Fri, 4 Mar 2016 00:05:21 +0100 Subject: [PATCH] wined3d: Get resource info from the texture in context_restore(). 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 2de56c2668f..f810706f6ff 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -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); -- 2.11.4.GIT