mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-11 07:03:33 +02:00
Don't double-lock a regular mutex, bad things happen. Fixes #9376
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user