Commit cca2867b authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Restore the correct sub resource in texture2d_load_fb_texture().

parent dfde1195
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment