I noticed what appears to be a bug in SDL 18.104.22.168 in Windows (it was also
in the previous version). There’s a
particular case when I expect an SDL_VIDEORESIZE event to be generated,
but it isn’t.
The bug repro. app is here:
Specifically the event is not generated if I maximize the window without
doing anything else, and then click ‘restore down’ (the button which
replaces ‘maximize’ when the window is maximized). No event is generated
and hence my glViewport call isn’t reached. If I first resize the window
before I maximize and subsequently click ‘restore down’ an SDL_VIDEORESIZE
event is generated and my call to glViewport is reached.