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:
parent
dfde119538
commit
cca2867b3c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue