SDL/src/render
Frank Praznik 152ba829a1 video: Try to reconfigure the window for OpenGL without destroying it
When attaching a renderer (GL based specifically) to a window that was not created with the appropriate flags, the window would be destroyed and recreated to configure it for the desired rendering backend. While most of the issues with this have been mitigated over time, there can still be some undesirable side effects from doing so on certain platforms.

If the window was just created and was never configured for any graphics context, it is possible that the reconfiguration can be done without destroying the window first.

The Wayland implementation fixes an issue when creating a window with the fullscreen flag on wlroots based Wayland compositors, and can likely be extended to other platforms to avoid unnecessarily destroying/recreating a window in the very common case where a window is created, followed immediately by attaching a renderer.
2025-08-27 12:10:48 -04:00
..
direct3d Added SDL_SetRenderTextureAddressMode() and SDL_GetRenderTextureAddressMode() 2025-03-28 13:51:19 -07:00
direct3d11 Fix vsync-off support for direct3d11 2025-08-24 21:33:02 +03:00
direct3d12 Use consistent style for pointer declarations and casts 2025-06-18 10:03:44 -07:00
gpu Don't reset the render target when invalidating GPU renderer cache state 2025-04-11 09:23:02 -07:00
metal Added SDL_SetRenderTextureAddressMode() and SDL_GetRenderTextureAddressMode() 2025-03-28 13:51:19 -07:00
ngage [Nokia N-Gage] Re-enable FPS counter, fix link in README. 2025-07-02 21:27:24 +02:00
opengl video: Try to reconfigure the window for OpenGL without destroying it 2025-08-27 12:10:48 -04:00
opengles2 video: Try to reconfigure the window for OpenGL without destroying it 2025-08-27 12:10:48 -04:00
ps2 Fix wrong callback type 2025-05-20 11:10:43 -07:00
psp Added SDL_SetRenderTextureAddressMode() and SDL_GetRenderTextureAddressMode() 2025-03-28 13:51:19 -07:00
software Fixed clamp texture address mode in software renderer 2025-07-21 10:20:16 -07:00
vitagxm Vita Render: Limit the scope of cliprect to viewport 2025-06-20 14:51:16 -07:00
vulkan Fixed warning: initialization of pointer of type 'VkSampler' (aka 'struct VkSampler_T *') to null from a constant boolean expression 2025-08-03 07:24:51 -07:00
SDL_d3dmath.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_d3dmath.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_render.c SDL_SetRenderDrawBlendMode(): Remove redundant param check 2025-08-08 14:05:33 -04:00
SDL_render_debug_font.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_render_unsupported.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_sysrender.h Restore support for the Nokia N-Gage (#12148) 2025-05-22 11:07:22 -07:00
SDL_yuv_sw.c Renamed SDL_SoftStretch() to SDL_StretchSurface() 2025-02-03 08:51:32 -08:00
SDL_yuv_sw_c.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00