Henri Verbeet : wined3d: Use wined3d_texture_load_location() in device_clear_render_targets().
Alexandre Julliard
julliard at winehq.org
Mon Feb 13 15:24:39 CST 2017
Module: wine
Branch: master
Commit: 87f98ee88bb85bfe9b21fb312dfc7e8e5036ff03
URL: http://source.winehq.org/git/wine.git/?a=commit;h=87f98ee88bb85bfe9b21fb312dfc7e8e5036ff03
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon Feb 13 13:13:20 2017 +0100
wined3d: Use wined3d_texture_load_location() in device_clear_render_targets().
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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))
More information about the wine-cvs
mailing list