Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an OpenGL ES 2 app that's working fine with the default window surface:

eglSurface = eglCreateWindowSurface( eglDisplay, config, nativeWindow, NULL );

When I try and make it single buffered, like this:

static const EGLint surf_attribute_list[] = {
    EGL_NONE // attribute list is termintated with EGL_NONE
eglSurface = eglCreateWindowSurface( eglDisplay, config, nativeWindow, surf_attribute_list );

I no longer see anything drawn on the screen.

Is there something else I need to do to switch from double to single buffering?

share|improve this question
up vote 1 down vote accepted

I was unable to solve this. I needed single-buffering so that I could leave content on existing framebuffer between one frame and the next, and ended up using an FBO to achieve this.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.