[PATCH 1/6] wined3d: Pass a texture and sub-resource index to surface_load_fb_texture().

Matteo Bruni matteo.mystral at gmail.com
Fri Mar 9 11:24:20 CST 2018


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));
>      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.



More information about the wine-devel mailing list