wined3d: Use wined3d_texture_load_location() 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 2017-02-13 13:13:20 +01:00 committed by Alexandre Julliard
parent 15fe05ea76
commit 87f98ee88b
1 changed files with 2 additions and 1 deletions

View File

@ -286,7 +286,8 @@ void device_clear_render_targets(struct wined3d_device *device, UINT rt_count, c
{
DWORD location = render_offscreen ? dsv->resource->draw_binding : WINED3D_LOCATION_DRAWABLE;
surface_load_location(depth_stencil, context, location);
wined3d_texture_load_location(depth_stencil->container,
dsv->sub_resource_idx, context, location);
}
if (!context_apply_clear_state(context, state, rt_count, fb))