Henri Verbeet : wined3d: Properly check for 3D/ volume textures in wined3d_device_update_texture().
Module: wine Branch: master Commit: e5a7d5465b2fffdd0e68d6e490c4e8f9fe4113d6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e5a7d5465b2fffdd0e68d6e490... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Apr 18 19:06:29 2016 +0200 wined3d: Properly check for 3D/volume textures in wined3d_device_update_texture(). Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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 f3fb732..f00c906 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);
participants (1)
-
Alexandre Julliard