[PATCH 01/10] wined3d: Restore the correct sub resource in texture2d_load_fb_texture().
Matteo Bruni
mbruni at codeweavers.com
Fri Mar 9 12:10:38 CST 2018
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
Ideally this should be squashed into 142935.
dlls/wined3d/surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index fa25b03748..e98541c429 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1518,7 +1518,7 @@ void texture2d_load_fb_texture(struct wined3d_texture *texture,
checkGLcall("glCopyTexSubImage2D");
if (restore_texture)
- context_restore(context, restore_texture->sub_resources[sub_resource_idx].u.surface);
+ context_restore(context, restore_texture->sub_resources[restore_idx].u.surface);
}
/* Does a direct frame buffer -> texture copy. Stretching is done with single
--
2.13.6
More information about the wine-devel
mailing list