mirror of https://github.com/axmolengine/axmol.git
Merge pull request #71 from c4games/sync-v3-pull-19256
Sync v3 pr-19256
This commit is contained in:
commit
b350a7abf8
|
@ -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