Skip to content

egl: Fix restoring of context after buffer swap.

Jeffrey Knockel requested to merge jeffk/vlc:egl-fix-restore-context into master

Previously the draw and read surfaces were passed to eglMakeCurrent() in the wrong order and the previous EGL display was not restored, implicitly assuming that the display had not changed. This merge request (1) passes the surfaces in the correct order and (2) restores the previous EGL display. The way that the context is restored after buffer swaps is now consistent with the way it is restored in egl.c's Resize().

Merge request reports