[PATCH 4/4] wined3d: Don't use surface_from_resource() to retrieve volumes.

Henri Verbeet hverbeet at codeweavers.com
Wed Mar 16 12:58:04 CDT 2011


This happened to work because the field offsets are the same.
---
 dlls/wined3d/device.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 972aaa5..199aba9 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -5179,9 +5179,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateTexture(IWineD3DDevice *iface,
 
             for (i = 0; i < level_count; ++i)
             {
-                src_volume = (IWineD3DVolume *)surface_from_resource(basetexture_get_sub_resource(
+                src_volume = (IWineD3DVolume *)volume_from_resource(basetexture_get_sub_resource(
                         (IWineD3DBaseTextureImpl *)src_texture, i));
-                dst_volume = (IWineD3DVolume *)surface_from_resource(basetexture_get_sub_resource(
+                dst_volume = (IWineD3DVolume *)volume_from_resource(basetexture_get_sub_resource(
                         (IWineD3DBaseTextureImpl *)dst_texture, i));
                 hr = IWineD3DDeviceImpl_UpdateVolume(iface, src_volume, dst_volume);
                 if (FAILED(hr))
-- 
1.7.3.4




More information about the wine-patches mailing list