mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 11:45:18 +02:00
Fix crash when taking screenshots on a thread
Forgot that we only enable android JNI on "I/O" threads. Fixes #20139
This commit is contained in:
@@ -139,6 +139,7 @@ static void WorkerThreadFunc(GlobalThreadContext *global, TaskThreadContext *thr
|
||||
}
|
||||
SetCurrentThreadName(thread->name);
|
||||
|
||||
// Should we do this on all threads?
|
||||
if (thread->type == TaskType::IO_BLOCKING) {
|
||||
AttachThreadToJNI();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user