The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
GL ES and Linux
Alex Szpakowski
Guest

If you call SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES) before creating your window and OpenGL context, then SDL will attempt to create an OpenGL ES context using any available context-creation API that can do so (for example on Linux both GLX and EGL can create OpenGL ES contexts, depending on the graphics driver.)

Quote:
On Jun 1, 2016, at 4:09 PM, Alexander Sabourenkov wrote:

Hello.

Is there any method to request and get EGL + GL ES context (instead of GLX + OpenGL) under X11/Linux/Mesa short of recompiling SDL2 with --disable-video-opengl?

I hit this one particular stumbling block some time last year, and it seems nothing changed. I vaguely remember there being some kind of flag for this in the far past, but it was removed for some reason afair.

Thank you.

--

./lxnt



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org