libSDL 2 and OpenGL ES 3.0? (Android)

Hi folks,

Is it possible to use OpenGL ES 3.0 with libSDL 2 on Android? (I have the Nexus 5 with Android 4.4.2 which supports ES 3.0)

If so, how to enable it? Can it be set with through the attributes like below?

Code:

SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);

Thanks!

2014/1/20 tsethcle

Hi folks,

Is it possible to use OpenGL ES 3.0 with libSDL 2 on Android? (I have the
Nexus 5 with Android 4.4.2 which supports ES 3.0)

If so, how to enable it? Can it be set with through the attributes like
below?

Code:

SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK,
SDL_GL_CONTEXT_PROFILE_ES);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);

Thanks!

I don’t think I’ve read reports of people using ES3 on Android. You should
set both SDL_GL_CONTEXT_MAJOR_VERSION and SDL_GL_CONTEXT_MINOR_VERSION
(just in case!).

If you try it out, let us know if it works!–
Gabriel.