After explaining the problem on irc, Pekka dictated this solution which works. The problem is that simple-egl can hang when toggling fullscreen because of a race where (quoting Pekka) "if it dispatches the frame callback simple-egl itself requested before the Mesa's own frame callback came, simple-egl will go to its redraw routing and call eglSwapBuffers so you end up effectively calling eglSwapBuffers from within eglSwapBuffers, and deadlock". This patch avoids redrawing (which calls eglSwapBuffers) when there is a pending frame callback.
parent
6a615d2621
commit
7e300dbc58
Loading…
Reference in new issue