Module: wine Branch: master Commit: cca2867b3c9eab1730c34ec82ecaf82823196520 URL: https://source.winehq.org/git/wine.git/?a=commit;h=cca2867b3c9eab1730c34ec82...
Author: Matteo Bruni mbruni@codeweavers.com Date: Mon Mar 12 12:54:45 2018 +0330
wined3d: Restore the correct sub resource in texture2d_load_fb_texture().
Signed-off-by: Matteo Bruni mbruni@codeweavers.com Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 fa25b03..e98541c 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