[PATCH 1/3] wined3d: Use wined3d_texture_load_location() in device_clear_render_targets().

Henri Verbeet hverbeet at codeweavers.com
Mon Feb 13 06:13:20 CST 2017


Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 dlls/wined3d/device.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 88a3bc9..b4b1803 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -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))
-- 
2.1.4




More information about the wine-patches mailing list