Don't double-lock a regular mutex, bad things happen. Fixes #9376

This commit is contained in:
Henrik Rydgard 2017-03-02 22:00:55 +01:00
parent 0ddf7c7e5f
commit 4736330c55

View File

@ -713,7 +713,7 @@ extern "C" void Java_org_ppsspp_ppsspp_NativeRenderer_displayRender(JNIEnv *env,
frameCommands.pop();
return;
}
// Still under lock here.
ProcessFrameCommands(env);
}
@ -1001,8 +1001,8 @@ extern "C" jint JNICALL Java_org_ppsspp_ppsspp_NativeApp_getDesiredBackbufferHei
return desiredBackbufferSizeY;
}
// Call this under frameCommandLock.
static void ProcessFrameCommands(JNIEnv *env) {
std::lock_guard<std::mutex> guard(frameCommandLock);
while (!frameCommands.empty()) {
FrameCommand frameCmd;
frameCmd = frameCommands.front();