libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
9.99k stars 1.84k forks source link

Window surface is not invalidated if format changes #9521

Open ccawley2011 opened 7 months ago

ccawley2011 commented 7 months ago

If SDL_SetWindowDisplayMode is used to change the pixel format but not the width or height, the window surface does not get invalidated because it doesn't result in an SDL_WINDOWEVENT_SIZE_CHANGED event.

slouken commented 1 month ago

We are scoping work for the SDL 3.2.0 release, so please let us know if this is a showstopper for you.

ccawley2011 commented 1 month ago

As far as I can tell, this is still an issue - the software renderer needs to be able to reset the framebuffer when the pixel format changes, but it currently only does so when the size changes.