OSDN Git Service

modified LwjglApplication to break the while if running is false after a runnable...
authorAriel Coppes <ariel.coppes@gemserk.com>
Tue, 2 Oct 2012 23:12:09 +0000 (20:12 -0300)
committerAriel Coppes <ariel.coppes@gemserk.com>
Tue, 2 Oct 2012 23:12:09 +0000 (20:12 -0300)
backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglApplication.java

index a5c0240..2ad327b 100644 (file)
@@ -151,6 +151,11 @@ public class LwjglApplication implements Application {
                                        }\r
                                }\r
                        }\r
+                       \r
+                       // if one of the runnables set running in false, for example after an exit().\r
+                       if (!running)\r
+                               break;\r
+                       \r
                        input.update();\r
                        shouldRender |= graphics.shouldRender();\r
 \r