fakhirsh / FEngine

Highly cross-platform Game Engine. Simple yet powerful Component based, data driven architecture.
BSD 2-Clause "Simplified" License
2 stars 0 forks source link

Android : View goes Blank when resuming game #31

Closed fakhirsh closed 9 years ago

fakhirsh commented 9 years ago

On android, the game goes blank {only the physics debug draw continues to work} when the game is restored after being paused... very very weird. Need to investigate...

fakhirsh commented 9 years ago

Solution

Setting setPreserveEGLContextOnPause(true); in the constructors of GL2View.java fixed the problem.

Its just that the game is now being restarted from the splash screen. I would want it to resume exactly from where it was paused (like in the middle of the gameplay).