[EGL] How to bind EGL_DEFAULT_DISPLAY to fb1

Hi All,

I am very new to EGL and OpenGLES2.0. I know this forum is dedicated for OpenGL but I have no where to post my question except this one so please understand.

I have two fb devices (fb0, fb1) on my embedded linux system running ARM core. Everytime my apps run, they always use fb0 as default display output. Now I want to change it to fb1. I traced the egl code and I found two things that may result to that:

  • Macro: #define EGL_DEFAULT_DISPLAY (EGLNativeDisplayType)0
  • Function call: EGLDisplay eglGetDisplay(EGLNativeDisplayType display_id)

About the macro, is there a way to point it to fb1?
About the call, how to use it to return a fb1 device or how to map EGLDisplay with fb1?

Any answers or advice are highly appreciated!
Please correct if my understanding is incorrect!

Thank you very much!

I asked the same question. Answer: You can’t. the rpi implementation does not use frambuffers at all.

See my post here: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=67&t=58952&sid=e1e438779d3233ba8a9f56940201b194

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.