[PATCH 1/6] wined3d: Pass a texture and sub-resource index to surface_load_fb_texture().
hverbeet at gmail.com
Fri Mar 9 11:26:45 CST 2018
On 9 March 2018 at 18:24, Matteo Bruni <matteo.mystral at gmail.com> wrote:
> 2018-03-09 0:31 GMT-06:00 Henri Verbeet <hverbeet at codeweavers.com>:
>> @@ -1517,8 +1516,8 @@ void surface_load_fb_texture(struct wined3d_surface *surface, BOOL srgb, struct
>> wined3d_texture_get_level_height(texture, level));
>> - if (restore_rt)
>> - context_restore(context, restore_rt);
>> + if (restore_texture)
>> + context_restore(context, restore_texture->sub_resources[sub_resource_idx].u.surface);
> I think this should use restore_idx.
Right, it should.
> I can send a patch fixing it
> (i.e. based on top of this series, I've rebased my branch on top of it
> already) if that seems useful.
More information about the wine-devel