Fix annoying little flicker when starting a game.

This commit is contained in:
Henrik Rydgård committed 2017-11-13 15:45:31 +01:00
1 parent 4788221251
commit 8bfdf7b1b2
3 files changed
+8 -3

No files matched your search

+3 -1
View File
@@ -320,11 +320,13 @@ void EmuScreen::sendMessage(const char *message, const char *value) {
// We will push MainScreen in update().
PSP_Shutdown();
bootPending_ = false;
stopRender_ = true;
invalid_ = true;
host->UpdateDisassembly();
} else if (!strcmp(message, "reset")) {
PSP_Shutdown();
bootPending_ = true;
stopRender_ = true;
invalid_ = true;
host->UpdateDisassembly();
@@ -987,7 +989,7 @@ void EmuScreen::postRender() {
Draw::DrawContext *draw = screenManager()->getDrawContext();
if (!draw)
return;
if (invalid_)
if (stopRender_)
draw->WipeQueue();
draw->EndFrame();
}