This commit is contained in:
halx99 2020-02-24 16:22:40 +08:00
parent 8e5271e42a
commit f5eac1eede
2 changed files with 2 additions and 1 deletions

View File

@ -280,6 +280,7 @@ public abstract class Cocos2dxActivity extends Activity implements Cocos2dxHelpe
// Cocos2dxGLSurfaceView
this.mGLSurfaceView = this.onCreateView();
this.mGLSurfaceView.setPreserveEGLContextOnPause(true);
// ...add to FrameLayout
mFrameLayout.addView(this.mGLSurfaceView);

View File

@ -199,7 +199,7 @@ public class Cocos2dxGLSurfaceView extends GLSurfaceView {
}
});
this.setRenderMode(RENDERMODE_WHEN_DIRTY);
//super.onPause();
super.onPause();
}
@Override