[PATCH 2/6] wined3d: Get resource info from the texture in surface_copy_simple_location().

Henri Verbeet hverbeet at codeweavers.com
Thu Mar 24 12:24:27 CDT 2016


Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 dlls/wined3d/surface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 4f1c379..b4e667f 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2956,7 +2956,7 @@ static DWORD resource_access_from_location(DWORD location)
 
 static void surface_copy_simple_location(struct wined3d_surface *surface, DWORD location)
 {
-    struct wined3d_device *device = surface->resource.device;
+    struct wined3d_device *device = surface->container->resource.device;
     struct wined3d_context *context;
     const struct wined3d_gl_info *gl_info;
     struct wined3d_bo_address dst, src;
-- 
2.1.4




More information about the wine-patches mailing list