mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix crash on quit / pause not working.
This commit is contained in:
parent
2dda6874bd
commit
e085c3ee76
3 changed files with 7 additions and 4 deletions
|
@ -72,8 +72,8 @@ void Core_RunLoop()
|
|||
if (coreState == CORE_NEXTFRAME)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
GL_SwapBuffers();
|
||||
coreState = CORE_RUNNING;
|
||||
GL_SwapBuffers();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
@ -403,12 +403,15 @@ void hleEnterVblank(u64 userdata, int cyclesLate) {
|
|||
if (skipFrame) {
|
||||
gstate_c.skipDrawReason |= SKIPDRAW_SKIPFRAME;
|
||||
numSkippedFrames++;
|
||||
} else {
|
||||
} else {
|
||||
numSkippedFrames = 0;
|
||||
}
|
||||
|
||||
if (!skipFlip) {
|
||||
coreState = CORE_NEXTFRAME;
|
||||
// Might've just quit / been paused.
|
||||
if (coreState == CORE_RUNNING) {
|
||||
coreState = CORE_NEXTFRAME;
|
||||
}
|
||||
CoreTiming::ScheduleEvent(0 - cyclesLate, afterFlipEvent, 0);
|
||||
|
||||
gpu->CopyDisplayToOutput();
|
||||
|
|
|
@ -197,8 +197,8 @@ int main(int argc, const char* argv[])
|
|||
|
||||
// If we were rendering, this might be a nice time to do something about it.
|
||||
if (coreState == CORE_NEXTFRAME) {
|
||||
headlessHost->SwapBuffers();
|
||||
coreState = CORE_RUNNING;
|
||||
headlessHost->SwapBuffers();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue