[UILayer] remove DeleteGlobalRef for java class on destructor, as this is now globally initialized

This commit is contained in:
amwatson 2024-04-18 22:24:07 -05:00
parent 289ce5de91
commit 2446bc329a

View file

@ -246,7 +246,6 @@ void UILayer::Shutdown() {
mSwapchain.mHandle = XR_NULL_HANDLE; mSwapchain.mHandle = XR_NULL_HANDLE;
mSwapchain.mWidth = 0; mSwapchain.mWidth = 0;
mSwapchain.mHeight = 0; mSwapchain.mHeight = 0;
mEnv->DeleteGlobalRef(mVrUILayerClass);
mVrUILayerClass = nullptr; mVrUILayerClass = nullptr;
// These steps are not strictly necessary for app shutdown, as references are cleaned up when // These steps are not strictly necessary for app shutdown, as references are cleaned up when
// the JVM is destroyed, but memory-saving if this class is destroyed/re-initialized at runtime. // the JVM is destroyed, but memory-saving if this class is destroyed/re-initialized at runtime.