mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 15:45:36 +00:00
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.)
This commit is contained in:
parent
7d66fa209a
commit
d49d955d73
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue