summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-18 12:33:10 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-18 15:01:13 +0300
commit58b4bbc5e92d4eb64da507d44fe5bbc9f535eee5 (patch)
tree299660bced2fb0b174e2d4f4c16c7d3aa8dcb8d9 /src/app.c
parent538f0fe2433344184f8c6c9435334a0e475fdcc6 (diff)
App: Attempt to fix app restore issue
Cached content like font glyphs are (were?) not being restored when returning to foreground.
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index 6c559f33..d259f541 100644
--- a/src/app.c
+++ b/src/app.c
@@ -1008,6 +1008,9 @@ void processEvents_App(enum iAppEventMode eventMode) {
1008 case SDL_APP_LOWMEMORY: 1008 case SDL_APP_LOWMEMORY:
1009 clearCache_App_(); 1009 clearCache_App_();
1010 break; 1010 break;
1011 case SDL_APP_WILLENTERFOREGROUND:
1012 invalidate_Window(d->window);
1013 break;
1011 case SDL_APP_DIDENTERFOREGROUND: 1014 case SDL_APP_DIDENTERFOREGROUND:
1012 gotEvents = iTrue; 1015 gotEvents = iTrue;
1013 d->warmupFrames = 5; 1016 d->warmupFrames = 5;