[PATCH 3/7] wined3d: Implement the initial texture data upload on top of wined3d_device_update_sub_resource().

Michael Müller michael at fds-team.de
Tue Sep 20 18:26:25 CDT 2016


Am 20.09.2016 um 11:41 schrieb Henri Verbeet:
> -            wined3d_texture_upload_data(object, i, context, &addr, data[i].row_pitch, data[i].slice_pitch);
> -            wined3d_texture_validate_location(object, i, WINED3D_LOCATION_TEXTURE_RGB);
> -            wined3d_texture_invalidate_location(object, i, ~WINED3D_LOCATION_TEXTURE_RGB);
> +            wined3d_device_update_sub_resource(device, &object->resource,
> +                    i, NULL, data[i].data, data[i].row_pitch, data[i].slice_pitch);

Didn't this break the initial upload for 3d textures as
wined3d_device_update_sub_resource only supports buffers and 2d textures?




More information about the wine-devel mailing list