Reorganize cache code and call flushAndSubmit in main

This commit is contained in:
Yousef Khadadeh 2026-01-27 12:40:39 +03:00
parent f46d25b8e6
commit f6c4eeb9f3
6 changed files with 43 additions and 42 deletions

View file

@ -608,7 +608,7 @@ SDL_AppResult SDL_AppIterate(void *appstate) {
mS.canvas->drawImage(mS.intermediateSurface->makeTemporaryImage(), 0, 0);
mS.ctx->flush();
mS.ctx->flushAndSubmit();
SDL_GL_SwapWindow(mS.window);
#endif