Commit 8ade2418 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent ca26689b
......@@ -241,7 +241,9 @@ static void prepare_ds_clear(struct wined3d_surface *ds, struct wined3d_context
{
/* Depth buffer was discarded, make it entirely current in its new location since
* there is no other place where we would get data anyway. */
SetRect(out_rect, 0, 0, ds->resource.width, ds->resource.height);
SetRect(out_rect, 0, 0,
wined3d_texture_get_level_width(ds->container, ds->texture_level),
wined3d_texture_get_level_height(ds->container, ds->texture_level));
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment