wined3d: Get rid of the special case for WINED3D_RTYPE_TEXTURE_3D 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
57268241f7
commit
9240316552
|
@ -3820,12 +3820,9 @@ HRESULT CDECL wined3d_device_update_texture(struct wined3d_device *device,
|
|||
level_count = min(src_level_count, dst_level_count);
|
||||
|
||||
src_size = max(src_texture->resource.width, src_texture->resource.height);
|
||||
src_size = max(src_size, src_texture->resource.depth);
|
||||
dst_size = max(dst_texture->resource.width, dst_texture->resource.height);
|
||||
if (type == WINED3D_RTYPE_TEXTURE_3D)
|
||||
{
|
||||
src_size = max(src_size, src_texture->resource.depth);
|
||||
dst_size = max(dst_size, dst_texture->resource.depth);
|
||||
}
|
||||
dst_size = max(dst_size, dst_texture->resource.depth);
|
||||
while (src_size > dst_size)
|
||||
{
|
||||
src_size >>= 1;
|
||||
|
|
Loading…
Reference in New Issue