SDL icon indicating copy to clipboard operation
SDL copied to clipboard

Window surface is not invalidated if format changes

Open ccawley2011 opened this issue 1 year ago • 2 comments

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.

ccawley2011 avatar Apr 12 '24 16:04 ccawley2011

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

slouken avatar Oct 06 '24 18:10 slouken

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 avatar Oct 10 '24 21:10 ccawley2011

@ccawley2011, I don't have a repro case for this. Can you create one, or a PR that fixes this for you?

slouken avatar Mar 20 '25 03:03 slouken