How to tell if rendering/accessing SDL_Renderer is safe on Android / bogus minmize/background event in side by side?

On Android in side-by-side mode, I get window minimized and app into background events.

This would normally indicate that 1. the app is not visible anymore (so rendering is pointless), 2. the OpenGL context/SDL_Renderer is not safe to touch in any way without causing corruption (as I have been informed in ).

I’m pretty sure NONE of these two things are true for side by side, since other apps when not focused in side by side render & update just fine, so both drawing and using the OpenGL context works for them.

Is this an SDL2 bug? Why would it tell me the app is in background, and the window is minimized(!) when it’s jut a simple window focus loss and the app isn’t truly in background? Because this really is a bit of an issue for side by side

1 Like

Try this

1 Like