Henri Verbeet : wined3d: Get resource info from the texture in context_restore().

Alexandre Julliard julliard at wine.codeweavers.com
Fri Mar 4 09:48:33 CST 2016


Module: wine
Branch: master
Commit: 193ca794fc5e7ecfb8a692324f8bd05df74d79d0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=193ca794fc5e7ecfb8a692324f8bd05df74d79d0

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Fri Mar  4 00:05:21 2016 +0100

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

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 2de56c2..f810706 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);




More information about the wine-cvs mailing list