v0.9.1a: more android lifecycle adjustments, should fix various bugs
This commit is contained in:
@@ -141,6 +141,12 @@ public class Game implements ApplicationListener {
|
||||
|
||||
@Override
|
||||
public void render() {
|
||||
//prevents weird rare cases where the app is running twice
|
||||
if (instance != this){
|
||||
finish();
|
||||
return;
|
||||
}
|
||||
|
||||
NoosaScript.get().resetCamera();
|
||||
NoosaScriptNoLighting.get().resetCamera();
|
||||
Gdx.gl.glDisable(Gdx.gl.GL_SCISSOR_TEST);
|
||||
|
||||
Reference in New Issue
Block a user