wined3d: Use the texture dimension helpers in device_clear_render_targets().

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-17 19:07:50 +02:00 committed by Alexandre Julliard
parent e7031197a1
commit cb127e7145
1 changed files with 4 additions and 2 deletions

View File

@ -343,8 +343,10 @@ void device_clear_render_targets(struct wined3d_device *device, UINT rt_count, c
else
{
render_offscreen = TRUE;
drawable_width = depth_stencil->pow2Width;
drawable_height = depth_stencil->pow2Height;
drawable_width = wined3d_texture_get_level_pow2_width(depth_stencil->container,
depth_stencil->texture_level);
drawable_height = wined3d_texture_get_level_pow2_height(depth_stencil->container,
depth_stencil->texture_level);
}
if (depth_stencil && render_offscreen)