wined3d: Properly check for 3D/volume textures in wined3d_device_update_texture().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9cdcc3e120
commit
e5a7d5465b
|
@ -3641,7 +3641,7 @@ HRESULT CDECL wined3d_device_update_texture(struct wined3d_device *device,
|
|||
|
||||
src_size = max(src_texture->resource.width, src_texture->resource.height);
|
||||
dst_size = max(dst_texture->resource.width, dst_texture->resource.height);
|
||||
if (type == WINED3D_RTYPE_VOLUME)
|
||||
if (type == WINED3D_RTYPE_TEXTURE_3D)
|
||||
{
|
||||
src_size = max(src_size, src_texture->resource.depth);
|
||||
dst_size = max(dst_size, dst_texture->resource.depth);
|
||||
|
|
Loading…
Reference in New Issue