SDL/src
Sam Lantinga a52d48c5ab Fixed bugs 2570, 3145, improved OpenGL ES context support on Windows and X11
Mark Callow

The attached patch does the following for the X11 and Windows platforms, the only ones where SDL attempts to use context_create_es_profile:

- Adds SDL_HINT_OPENGL_ES_DRIVER by which the application can
  say to use the OpenGL ES driver & EGL rather than the Open GL
  driver. (For bug #2570)
- Adds code to {WIN,X11}_GL_InitExtensions to determine the maximum
  OpenGL ES version supported by the OpenGL driver (for bug #3145)
- Modifies the test that determines whether to use the OpenGL
  driver or the real OpenGL ES driver to take into account the
  hint, the requested and supported ES version and whether ES 1.X
  is being requested. (For bug #2570 & bug #3145)
- Enables the testgles2 test for __WINDOWS__ and __LINUX__ and adds
  the test to the VisualC projects.

With the fix in place I have run testdraw2, testgl and testgles2 without any issues and have run my own apps that use OpenGL, OpenGL ES 3 and OpenGL ES 1.1.
2017-01-10 08:54:33 -08:00
..
atomic Updated copyright for 2017 2017-01-01 18:33:28 -08:00
audio Fixed bug 3552 - Building SDL in release mode fails under VS 2017 RC 2017-01-09 20:37:52 -08:00
core We only need the first few keymaps corresponding to the following constants: 2017-01-09 11:58:01 -08:00
cpuinfo Updated copyright for 2017 2017-01-01 18:33:28 -08:00
dynapi Added SDL_JoystickGetAxisInitialState() to get a joystick axis' initial value. 2017-01-04 10:28:07 -08:00
events Fixed spacing 2017-01-09 11:30:29 -08:00
file Updated copyright for 2017 2017-01-01 18:33:28 -08:00
filesystem Updated copyright for 2017 2017-01-01 18:33:28 -08:00
haptic Updated copyright for 2017 2017-01-01 18:33:28 -08:00
joystick Replaced a few single-line "//" comments. 2017-01-07 17:09:14 -05:00
libm Updated copyright for 2017 2017-01-01 18:33:28 -08:00
loadso Updated copyright for 2017 2017-01-01 18:33:28 -08:00
main Updated copyright for 2017 2017-01-01 18:33:28 -08:00
power Updated copyright for 2017 2017-01-01 18:33:28 -08:00
render Fixed bug 3304 - Android black screen on resume 2017-01-08 10:41:22 -08:00
stdlib Updated copyright for 2017 2017-01-01 18:33:28 -08:00
test Updated copyright for 2017 2017-01-01 18:33:28 -08:00
thread Updated copyright for 2017 2017-01-01 18:33:28 -08:00
timer Updated copyright for 2017 2017-01-01 18:33:28 -08:00
video Fixed bugs 2570, 3145, improved OpenGL ES context support on Windows and X11 2017-01-10 08:54:33 -08:00
SDL.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_assert.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_assert_c.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_dataqueue.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_dataqueue.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_error.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_error_c.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_hints.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_internal.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_log.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00