From 140220375936ea4f2c5393d46027ed2d7de1d7a8 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 4 Aug 2016 12:06:55 +0200 Subject: [PATCH] wined3d: Use wined3d_texture_load_location() in wined3d_surface_blt(). Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/surface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 8ba63fd13fa..efdea87d5c0 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -4226,7 +4226,8 @@ HRESULT wined3d_surface_blt(struct wined3d_surface *dst_surface, const RECT *dst if (!wined3d_resource_is_offscreen(&dst_texture->resource)) { struct wined3d_context *context = context_acquire(device, dst_surface); - surface_load_location(dst_surface, context, dst_texture->resource.draw_binding); + wined3d_texture_load_location(dst_texture, dst_sub_resource_idx, + context, dst_texture->resource.draw_binding); context_release(context); } return WINED3D_OK;