GNOME Bugzilla – Bug 665604
Cogl needs to bind the framebuffer before calling eglSwapBuffers
Last modified: 2011-12-07 15:16:19 UTC
The EGL spec says that the surface to be swapped must be bound to the current context for eglSwapBuffers to work. Here is a patch on top of the wip/rib/master-next branch that we should probably try to remember to land along with that branch.
Created attachment 202838 [details] [review] egl-winsys: Bind the framebuffer before swapping For some reason the EGL spec says that the surface passed to eglSwapBuffers must be bound as the current surface for the swap to work. Mesa validates that this is the case and returns an error from the swap buffers call if not.
Created attachment 202840 [details] Test case Here's a short test case to show that it really doesn't work without the patch.
Pushed as dba42715d40