wined3d: Use the texture dimension helpers in prepare_ds_clear().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ca26689b6e
commit
8ade2418ef
|
@ -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
|
/* Depth buffer was discarded, make it entirely current in its new location since
|
||||||
* there is no other place where we would get data anyway. */
|
* 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue