On 14 September 2015 at 13:14, Riccardo Bortolato rikyz619@gmail.com wrote:
static const struct wined3d_texture_ops texture2d_ops = { texture2d_sub_resource_load, @@ -924,6 +935,8 @@ static const struct wined3d_texture_ops texture2d_ops = texture2d_sub_resource_validate_location, texture2d_sub_resource_upload_data, texture2d_prepare_texture,
- texture2d_sub_resource_map,
- texture2d_sub_resource_unmap,
};
Please keep the various sub_resource operations together. (I.e., keep texture_prepare_texture last.) You're probably also missing some wined3d_private.h changes here that ended up in the next patch. It doesn't make sense to introduce these without users, so what you'd want to do is e.g. first make the change for d3d10_texture2d_Map(), then for d3d10_texture2d_Unmap(), etc.