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:
parent
15fe05ea76
commit
87f98ee88b
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue