Module: wine Branch: master Commit: 887bf4354345d54be5f291e6d361446bda87316e URL: http://source.winehq.org/git/wine.git/?a=commit;h=887bf4354345d54be5f291e6d3...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Aug 2 12:26:31 2016 +0200
wined3d: Use wined3d_texture_load_location() in wined3d_device_update_sub_resource().
Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 ce06474..34ce224 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,