mirror of https://github.com/mgba-emu/mgba.git
GBA Thread: Revert 0a946a0b43
, it broke vsync
This commit is contained in:
parent
510fddb23f
commit
32fc4a99b9
|
@ -602,7 +602,7 @@ bool GBASyncWaitFrameStart(struct GBASync* sync, int frameskip) {
|
||||||
if (!sync->videoFrameOn && !sync->videoFramePending) {
|
if (!sync->videoFrameOn && !sync->videoFramePending) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (sync->videoFrameOn && !sync->videoFramePending) {
|
if (sync->videoFrameOn) {
|
||||||
ConditionWait(&sync->videoFrameAvailableCond, &sync->videoFrameMutex);
|
ConditionWait(&sync->videoFrameAvailableCond, &sync->videoFrameMutex);
|
||||||
}
|
}
|
||||||
sync->videoFramePending = 0;
|
sync->videoFramePending = 0;
|
||||||
|
|
Loading…
Reference in New Issue