[Mesa-dev] EGL and glClear(): Nothing is drawn on screen

Eric Anholt eric at anholt.net
Wed Apr 10 09:31:40 PDT 2013


Ralf Jung <post at ralfj.de> writes:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
>>> I am not using GLES, but normal OpenGL through EGL. And I am 
>>> pretty sure it's double-buffered - as far as I understood it, 
>>> that's the default, and I did not attempt to override it in any 
>>> way (like calling glDrawBuffer).
>> 
>> Oh, our EGL implementation is not prepared for frontbuffer 
>> rendering at all.
> I do not render into the frontbuffer. I render to the backbuffer, as
> usual, and then call eglSwapBuffers. See
> <http://www.ralfj.de/git/gltest.git/blob/refs/heads/master:/gltest.cpp#l138>

OK, the presence of glDrawBuffer(GL_FRONT) in the linked code plus the
glFinish()/glFlush()es made it look like you were.  You don't need any
flushing after a swapbuffers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130410/bb4a5772/attachment.pgp>


More information about the mesa-dev mailing list