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>
This commit is contained in:
Matteo Bruni 2018-03-12 12:36:45 +03:30 committed by Alexandre Julliard
parent dfde119538
commit cca2867b3c
1 changed files with 1 additions and 1 deletions

View File

@ -1518,7 +1518,7 @@ void texture2d_load_fb_texture(struct wined3d_texture *texture,
checkGLcall("glCopyTexSubImage2D"); checkGLcall("glCopyTexSubImage2D");
if (restore_texture) 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 /* Does a direct frame buffer -> texture copy. Stretching is done with single