Window surface is not invalidated if format changes
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.
We are scoping work for the SDL 3.2.0 release, so please let us know if this is a showstopper for you.
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.
@ccawley2011, I don't have a repro case for this. Can you create one, or a PR that fixes this for you?