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

Alexandre Julliard julliard at wine.codeweavers.com
Tue Mar 29 08:53:20 CDT 2016


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon Mar 28 18:58:00 2016 +0200

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

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

---

 dlls/wined3d/volume.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/volume.c b/dlls/wined3d/volume.c
index cb27ad8..f23a385 100644
--- a/dlls/wined3d/volume.c
+++ b/dlls/wined3d/volume.c
@@ -263,10 +263,10 @@ BOOL wined3d_volume_load_location(struct wined3d_volume *volume,
         return TRUE;
     }
 
-    if ((volume->resource.access_flags & required_access) != required_access)
+    if ((texture->resource.access_flags & required_access) != required_access)
     {
         ERR("Operation requires %#x access, but volume only has %#x.\n",
-                required_access, volume->resource.access_flags);
+                required_access, texture->resource.access_flags);
         return FALSE;
     }
 




More information about the wine-cvs mailing list