Skip to content

Commit

Permalink
recreate the thing rob does
Browse files Browse the repository at this point in the history
  • Loading branch information
qimiko committed Aug 8, 2024
1 parent b60c564 commit cad559f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/org/cocos2dx/lib/Cocos2dxGLSurfaceView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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() }
}

Expand Down

0 comments on commit cad559f

Please sign in to comment.