Commit b17d6492 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Don't use surface_from_resource() to retrieve volumes.

This happened to work because the field offsets are the same.
parent 09b4ed2e
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment