Fixed screen staying black sometimes after restoring app from background

This commit is contained in:
Sergii Pylypenko
2014-12-18 21:50:52 +02:00
parent 1d8c6bcc5d
commit 622966dd9b
3 changed files with 2 additions and 3 deletions

View File

@@ -1004,10 +1004,10 @@ class DemoGLSurfaceView extends GLSurfaceView_SDL {
if(mRenderer.mPaused)
return;
mRenderer.mPaused = true;
super.onPause();
mRenderer.nativeGlContextLostAsyncEvent();
if( mRenderer.accelerometer != null ) // For some reason it crashes here often - are we getting this event before initialization?
mRenderer.accelerometer.stop();
super.onPause();
};
public boolean isPaused() {