The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

android/service_taget: Store native window pointer as global.

+5 -2
+5 -2
src/xrt/targets/service-lib/service_target.cpp
··· 20 20 #include <android/native_window.h> 21 21 #include <android/native_window_jni.h> 22 22 23 + #include "android/android_globals.h" 24 + 23 25 using wrap::android::view::Surface; 24 26 25 27 extern "C" void ··· 42 44 jni::init(env); 43 45 Surface surf(surface); 44 46 jni::Object monadoImpl(thiz); 47 + 45 48 ANativeWindow *nativeWindow = ANativeWindow_fromSurface(env, surface); 46 - 47 - //! @todo do something! 49 + android_globals_store_window((struct _ANativeWindow *)nativeWindow); 50 + U_LOG_D("Stored ANativeWindow: %p", nativeWindow); 48 51 }