SDL/src/render/software
Frank Praznik 2a53eed783
renderer: Check the surface validity flag when re-acquiring the surface in the software renderer
If a size change occurs, the sdl2-compat event handler will flush the renderer, which will cause the software renderer to re-acquire a surface that was invalidated due to the size change. However, if the OnWindowPixelSizeChanged handler is called afterward, the invalid flag will be set on the surface, causing presentation to fail.

Check both for a null surface pointer and an invalid surface flag when checking surface validity in the software renderer.

(cherry picked from commit 73fc274ef7)
2026-04-27 12:57:40 -04:00
..
SDL_blendfillrect.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
SDL_blendfillrect.h Updated copyright for 2026 2026-01-01 09:48:19 -08:00
SDL_blendline.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
SDL_blendline.h Updated copyright for 2026 2026-01-01 09:48:19 -08:00
SDL_blendpoint.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
SDL_blendpoint.h Updated copyright for 2026 2026-01-01 09:48:19 -08:00
SDL_draw.h Updated copyright for 2026 2026-01-01 09:48:19 -08:00
SDL_drawline.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
SDL_drawline.h Updated copyright for 2026 2026-01-01 09:48:19 -08:00
SDL_drawpoint.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
SDL_drawpoint.h Updated copyright for 2026 2026-01-01 09:48:19 -08:00
SDL_render_sw.c renderer: Check the surface validity flag when re-acquiring the surface in the software renderer 2026-04-27 12:57:40 -04:00
SDL_render_sw_c.h Updated copyright for 2026 2026-01-01 09:48:19 -08:00
SDL_triangle.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
SDL_triangle.h Updated copyright for 2026 2026-01-01 09:48:19 -08:00