From d49d955d739fdda9901f0949f5f3b7ccbc803ab2 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 8 Sep 2021 11:44:17 -0400 Subject: [PATCH] render: SDL_RenderGeometry should still render when hidden, in most cases. (otherwise render targets may fail, etc...the check is a legacy helper for iOS apps that crash if you try to use OpenGL while in the background.) --- src/render/SDL_render.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c index 6b30e8874..ec545701d 100644 --- a/src/render/SDL_render.c +++ b/src/render/SDL_render.c @@ -3758,10 +3758,12 @@ SDL_RenderGeometryRaw(SDL_Renderer *renderer, size_indices = 0; } +#if DONT_DRAW_WHILE_HIDDEN /* Don't draw while we're hidden */ if (renderer->hidden) { return 0; } +#endif if (num_vertices < 3) { return 0;