mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-22 02:39:05 +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:
1 parent
112bd904b8
commit
a3a7807aac
3 files changed
+3
-2
No files matched your search
@@ -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