Reorganize cache code and call flushAndSubmit in main
This commit is contained in:
parent
f46d25b8e6
commit
f6c4eeb9f3
6 changed files with 43 additions and 42 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue