From e5a7d5465b2fffdd0e68d6e490c4e8f9fe4113d6 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 18 Apr 2016 19:06:29 +0200 Subject: [PATCH] wined3d: Properly check for 3D/volume textures in wined3d_device_update_texture(). Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index f3fb7321c98..f00c9064796 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -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); -- 2.11.4.GIT