Setup JNI for threads that may use it

OpenXR runtime may use JNI, so attach threads that will do OpenXR calls.
This commit is contained in:
Patrick Nicolas
2024-04-05 16:33:12 +02:00
parent fd6b9f539a
commit 47a83b42b5
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -18,11 +18,16 @@
*/
#include "stream.h"
#include "application.h"
#include "utils/named_thread.h"
#include <spdlog/spdlog.h>
void scenes::stream::process_packets()
{
#ifdef __ANDROID__
application::instance().setup_jni();
#endif
while (not exiting)
{
try