After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 665604 - Cogl needs to bind the framebuffer before calling eglSwapBuffers
Cogl needs to bind the framebuffer before calling eglSwapBuffers
Status: RESOLVED FIXED
Product: cogl
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Cogl maintainer(s)
Cogl maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-12-05 16:18 UTC by Neil Roberts
Modified: 2011-12-07 15:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
egl-winsys: Bind the framebuffer before swapping (2.29 KB, patch)
2011-12-05 16:18 UTC, Neil Roberts
none Details | Review
Test case (1.07 KB, text/x-csrc)
2011-12-05 16:19 UTC, Neil Roberts
  Details

Description Neil Roberts 2011-12-05 16:18:33 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.
Comment 1 Neil Roberts 2011-12-05 16:18:35 UTC
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.
Comment 2 Neil Roberts 2011-12-05 16:19:50 UTC
Created attachment 202840 [details]
Test case

Here's a short test case to show that it really doesn't work without the patch.
Comment 3 Neil Roberts 2011-12-07 15:16:19 UTC
Pushed as dba42715d40