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:
Henrik Rydgård
2025-03-21 19:12:54 +01:00
parent 112bd904b8
commit a3a7807aac
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -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();
}