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

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-07 19:38:00 +02:00 committed by Alexandre Julliard
parent 8c3b0aead5
commit 7c9ff85452
1 changed files with 2 additions and 2 deletions

View File

@ -2820,8 +2820,8 @@ static void surface_load_ds_location(struct wined3d_surface *surface, struct win
}
else
{
w = surface->resource.width;
h = surface->resource.height;
w = wined3d_texture_get_level_width(surface->container, surface->texture_level);
h = wined3d_texture_get_level_height(surface->container, surface->texture_level);
}
if (surface->current_renderbuffer)