This commit is contained in:
kornerr committed 2026-11-19 23:23:13 +03:00
1 parent 9b07ff5892
commit e84c142bd1
1 file changed
+4 -6
@@ -9,9 +9,8 @@ object HCMAppImpl {
val renderVM = RenderVM
fun setup(activity: Activity) {
val vm = RenderVM.shared!!
vm.androidContext = activity
vm.glView = RenderGLView(activity)
renderVM.androidContext = activity
renderVM.glView = RenderGLView(activity)
hcmVM.hapticView = activity.window.decorView
otherSetupConsoleLogging(hcm.ctrl, "HCM")
@@ -22,8 +21,7 @@ object HCMAppImpl {
fun tearDown() {
hcmVM.hapticView = null
val vm = RenderVM.shared!!
vm.glView = null
vm.androidContext = null
renderVM.glView = null
renderVM.androidContext = null
}
}