Fix possible segfault

This commit is contained in:
2020-09-12 09:36:08 +02:00
parent 0a06e1d841
commit 74e53a0d67
3 changed files with 28 additions and 18 deletions
+3 -4
View File
@@ -107,12 +107,11 @@ int main() {
g_update_colors = false;
}
g_main_scene->renderScene();
renderer->clearRenderer();
for(auto &x : g_active_scenes) {
if(x != g_main_scene)
x->renderScene(false);
x->renderScene(false);
}
g_main_scene->presentScene();
renderer->presentRenderer();
g_wait_for_anim = false;
frames++;
if ( SDL_GetTicks() - base >= 1000 ) {