sdl2_frt/src/video
Ryan C. Gordon 389c8995d2 opengl: Allow SDL_GL_MakeCurrent() to accept a NULL window (thanks, Martin!).
This allows you to bind surfaceless contexts on a background thread to, for
example, load assets in a separate context, for platforms that have different
requirements about sharing surfaces, etc.

Martin's notes on the matter:

"Here's a patch that enables passing NULL windows to SDL_GL_MakeCurrent, if
the involved APIs allow it. Currently, this is only the case for EGL, and
even then only if some specific extensions are present (which they usually
are).

If "surfaceless" contexts are not supported, SDL_GL_MakeCurrent continues to
generate an error (albeit with a more specific error message than it used to),
so this should not break anything that wasn't broken before."

(Please see https://bugzilla.libsdl.org/show_bug.cgi?id=3695 for more
discussion.)

Fixes Bugzilla #3695.
2020-04-13 14:44:21 -04:00
..
android Added SDL_log.h to SDL_internal.h so logging is available everywhere 2020-04-07 09:38:57 -07:00
arm ARM: NEON assembly optimization for SDL_FillRect 2019-10-24 21:17:52 -04:00
cocoa metal: Added some support interfaces to Apple's Metal API (thanks, Caleb!). 2020-04-10 00:37:35 -04:00
directfb Added SDL_log.h to SDL_internal.h so logging is available everywhere 2020-04-07 09:38:57 -07:00
dummy Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
emscripten emscripten: Add a few keyCode mappings for German keyboards 2020-04-09 15:57:12 +01:00
haiku Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
khronos
kmsdrm Added SDL_log.h to SDL_internal.h so logging is available everywhere 2020-04-07 09:38:57 -07:00
nacl Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
offscreen Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
pandora Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
psp Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
qnx
raspberry Added SDL_log.h to SDL_internal.h so logging is available everywhere 2020-04-07 09:38:57 -07:00
uikit metal: Added some support interfaces to Apple's Metal API (thanks, Caleb!). 2020-04-10 00:37:35 -04:00
vivante Added SDL_log.h to SDL_internal.h so logging is available everywhere 2020-04-07 09:38:57 -07:00
wayland wayland: Support wayland compositors with wl_seat version < 5 (thanks, Nia!). 2020-04-07 13:30:46 -04:00
windows Added SDL_log.h to SDL_internal.h so logging is available everywhere 2020-04-07 09:38:57 -07:00
winrt Added SDL_log.h to SDL_internal.h so logging is available everywhere 2020-04-07 09:38:57 -07:00
x11 Added SDL_log.h to SDL_internal.h so logging is available everywhere 2020-04-07 09:38:57 -07:00
yuv2rgb Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
SDL_blit_0.c Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
SDL_blit_1.c Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
SDL_blit_A.c Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
SDL_blit_auto.c Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
SDL_blit_auto.h Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
SDL_blit_copy.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_blit_copy.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_blit_N.c Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
SDL_blit_slow.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_blit_slow.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_blit.c Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
SDL_blit.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_bmp.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_clipboard.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_egl_c.h opengl: Allow SDL_GL_MakeCurrent() to accept a NULL window (thanks, Martin!). 2020-04-13 14:44:21 -04:00
SDL_egl.c opengl: Allow SDL_GL_MakeCurrent() to accept a NULL window (thanks, Martin!). 2020-04-13 14:44:21 -04:00
SDL_fillrect.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_pixels_c.h Fixed bug 5037 - Regression 2.0.12 Alpha value of 0 on palette may become opaque 2020-03-17 09:35:42 +01:00
SDL_pixels.c Fixed bug 5037 - Regression 2.0.12 Alpha value of 0 on palette may become opaque 2020-03-17 09:35:42 +01:00
SDL_rect_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_rect.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_RLEaccel_c.h A few #defines to reduce SDL2 footprint. 2020-01-21 21:33:40 +01:00
SDL_RLEaccel.c Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
SDL_shape_internals.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_shape.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_stretch.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_surface.c Fixed bug 5037 - Regression 2.0.12 Alpha value of 0 on palette may become opaque 2020-03-17 09:35:42 +01:00
SDL_sysvideo.h opengl: Allow SDL_GL_MakeCurrent() to accept a NULL window (thanks, Martin!). 2020-04-13 14:44:21 -04:00
SDL_video.c opengl: Allow SDL_GL_MakeCurrent() to accept a NULL window (thanks, Martin!). 2020-04-13 14:44:21 -04:00
SDL_vulkan_internal.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_vulkan_utils.c Added SDL_log.h to SDL_internal.h so logging is available everywhere 2020-04-07 09:38:57 -07:00
SDL_yuv_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_yuv.c Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
sdlgenblit.pl Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00