mirror of https://github.com/axmolengine/axmol.git
Sync v3 pr-19256, see: https://github.com/cocos2d/cocos2d-x/pull/19256
This commit is contained in:
parent
8e5271e42a
commit
f5eac1eede
|
@ -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);
|
||||
|
|
|
@ -199,7 +199,7 @@ public class Cocos2dxGLSurfaceView extends GLSurfaceView {
|
|||
}
|
||||
});
|
||||
this.setRenderMode(RENDERMODE_WHEN_DIRTY);
|
||||
//super.onPause();
|
||||
super.onPause();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue