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

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


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

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

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

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

---

 dlls/wined3d/volume.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/volume.c b/dlls/wined3d/volume.c
index a4d3eb2..cb27ad8 100644
--- a/dlls/wined3d/volume.c
+++ b/dlls/wined3d/volume.c
@@ -152,8 +152,8 @@ void wined3d_volume_invalidate_location(struct wined3d_volume *volume, DWORD loc
 static void wined3d_volume_download_data(struct wined3d_volume *volume,
         const struct wined3d_context *context, const struct wined3d_bo_address *data)
 {
+    const struct wined3d_format *format = volume->container->resource.format;
     const struct wined3d_gl_info *gl_info = context->gl_info;
-    const struct wined3d_format *format = volume->resource.format;
 
     if (format->convert)
     {




More information about the wine-cvs mailing list