sdl2_frt/src/video/x11
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
..
edid-parse.c Fixed edid parsing code for older gcc compilers 2016-12-12 09:18:42 -08:00
edid.h Fixed edid parsing code for older gcc compilers 2016-12-12 09:18:42 -08:00
imKStoUCS.c x11: Updated imKStoUCS.* to latest from x.org. 2016-02-08 01:08:21 -05:00
imKStoUCS.h x11: Updated imKStoUCS.* to latest from x.org. 2016-02-08 01:08:21 -05:00
SDL_x11clipboard.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11clipboard.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11dyn.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11dyn.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11events.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11events.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11framebuffer.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11framebuffer.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11keyboard.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11keyboard.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11messagebox.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11messagebox.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11modes.c Replaced a few single-line "//" comments. 2017-01-07 17:09:14 -05:00
SDL_x11modes.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11mouse.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11mouse.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11opengl.c Fixed bugs 2570, 3145, improved OpenGL ES context support on Windows and X11 2017-01-10 08:54:33 -08:00
SDL_x11opengl.h Fixed bugs 2570, 3145, improved OpenGL ES context support on Windows and X11 2017-01-10 08:54:33 -08:00
SDL_x11opengles.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11opengles.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11shape.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11shape.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11sym.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11touch.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11touch.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11video.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11video.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11window.c Fixed bugs 2570, 3145, improved OpenGL ES context support on Windows and X11 2017-01-10 08:54:33 -08:00
SDL_x11window.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11xinput2.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11xinput2.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00