sdl2_frt/include
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
..
begin_code.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
close_code.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_assert.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_atomic.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_audio.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_bits.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_blendmode.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_clipboard.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_config_android.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_config_iphoneos.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_config_macosx.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_config_minimal.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_config_pandora.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_config_psp.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_config_windows.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_config_winrt.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_config_wiz.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_config.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_config.h.cmake Added configure and cmake support for libsamplerate 2017-01-06 20:43:53 -08:00
SDL_config.h.in Added configure and cmake support for libsamplerate 2017-01-06 20:43:53 -08:00
SDL_copying.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_cpuinfo.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_egl.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_endian.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_error.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_events.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_filesystem.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_gamecontroller.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_gesture.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_haptic.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_hints.h Fixed bugs 2570, 3145, improved OpenGL ES context support on Windows and X11 2017-01-10 08:54:33 -08:00
SDL_joystick.h Added SDL_JoystickGetAxisInitialState() to get a joystick axis' initial value. 2017-01-04 10:28:07 -08:00
SDL_keyboard.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_keycode.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_loadso.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_log.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_main.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_messagebox.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_mouse.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_mutex.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_name.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_opengl_glext.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_opengl.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_opengles2_gl2.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_opengles2_gl2ext.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_opengles2_gl2platform.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_opengles2_khrplatform.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_opengles2.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_opengles.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_pixels.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_platform.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_power.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_quit.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_rect.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_render.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_revision.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_rwops.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_scancode.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_shape.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_stdinc.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_surface.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_system.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_syswm.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_test_assert.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_test_common.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_test_compare.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_test_crc32.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_test_font.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_test_fuzzer.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_test_harness.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_test_images.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_test_log.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_test_md5.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_test_random.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_test.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_thread.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_timer.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_touch.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_types.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_version.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_video.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00