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
Added OpenGL ES 2 context support, set SDL_GL_CONTEXT_MAJOR_VERSION t…
The additional attributes are pulled from SDL 1.3/2.0, similar to webOS
Match the SDL_GLattr enum order from webOS, so conditional code will …
Minor EGL fix