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:
Henri Verbeet 2016-04-18 19:06:29 +02:00 committed by Alexandre Julliard
parent 9cdcc3e120
commit e5a7d5465b
1 changed files with 1 additions and 1 deletions

View File

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