mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-27 10:20:49 +00:00
Don't double-lock a regular mutex, bad things happen. Fixes #9376
This commit is contained in:
parent
0ddf7c7e5f
commit
4736330c55
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user