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

This happened to work because the field offsets are the same.
This commit is contained in:
Henri Verbeet 2011-03-16 18:58:04 +01:00 committed by Alexandre Julliard
parent 09b4ed2e75
commit b17d64923e
1 changed files with 2 additions and 2 deletions

View File

@ -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))