Added OpenGL ES 2 context support #44

Merged
merged 3 commits into from Apr 8, 2013

2 participants

@jgranick
Open Source Projects member

This should add the ability to create an OpenGL ES 2 context, similar to how it works on webOS, and (I believe) on SDL 2.

The extra attributes were pulled from the old SDL 1.3 working version, but I'm not sure if SDL 2 has officially changed how this works. Either way, this is consistent with how webOS handles it (since all webOS native applications rely upon SDL) and blends in well with the rest of SDL 1.2

I have left the default at OpenGL ES 1, but now you can use SDL_GL_SetAttribute (SDL_GL_CONTEXT_MAJOR_VERSION, 2); to increase to ES 2

@jnicholl jnicholl merged commit 65d59f4 into blackberry:emulate Apr 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment