mirror of
https://github.com/amwatson/CitraVR.git
synced 2024-09-20 03:11:40 +02:00
[UILayer] remove DeleteGlobalRef for java class on destructor, as this is now globally initialized
This commit is contained in:
parent
289ce5de91
commit
2446bc329a
1 changed files with 0 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue