From cad559f1d9db62442afa6faf586e0f6b3e3b3a92 Mon Sep 17 00:00:00 2001 From: Chloe <25387744+qimiko@users.noreply.github.com> Date: Thu, 8 Aug 2024 01:57:10 -0700 Subject: [PATCH] recreate the thing rob does --- app/src/main/java/org/cocos2dx/lib/Cocos2dxGLSurfaceView.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/cocos2dx/lib/Cocos2dxGLSurfaceView.kt b/app/src/main/java/org/cocos2dx/lib/Cocos2dxGLSurfaceView.kt index 467864d5..2b401b5a 100644 --- a/app/src/main/java/org/cocos2dx/lib/Cocos2dxGLSurfaceView.kt +++ b/app/src/main/java/org/cocos2dx/lib/Cocos2dxGLSurfaceView.kt @@ -126,11 +126,13 @@ class Cocos2dxGLSurfaceView(context: Context) : GLSurfaceView(context) { override fun onPause() { queueEvent { cocos2dxRenderer.handleOnPause() } + renderMode = RENDERMODE_WHEN_DIRTY super.onPause() } override fun onResume() { super.onResume() + renderMode = RENDERMODE_CONTINUOUSLY queueEvent { cocos2dxRenderer.handleOnResume() } }