9 Mar
2018
9 Mar
'18
5:24 p.m.
2018-03-09 0:31 GMT-06:00 Henri Verbeet <hverbeet(a)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)); checkGLcall("glCopyTexSubImage2D");
- 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. 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.