From 887bf4354345d54be5f291e6d361446bda87316e Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 2 Aug 2016 12:26:31 +0200 Subject: [PATCH] wined3d: Use wined3d_texture_load_location() in wined3d_device_update_sub_resource(). Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index ce0647428d3..34ce2249e4e 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -4151,7 +4151,7 @@ void CDECL wined3d_device_update_sub_resource(struct wined3d_device *device, str if (!dst_point.x && !dst_point.y && src_rect.right == width && src_rect.bottom == height) wined3d_texture_prepare_texture(texture, context, FALSE); else - surface_load_location(surface, context, WINED3D_LOCATION_TEXTURE_RGB); + wined3d_texture_load_location(texture, sub_resource_idx, context, WINED3D_LOCATION_TEXTURE_RGB); wined3d_texture_bind_and_dirtify(texture, context, FALSE); wined3d_surface_upload_data(surface, gl_info, resource->format,