oakes / play-clj

A Clojure game library
The Unlicense
940 stars 72 forks source link

Exception in thread "LWJGL Application" java.lang.NullPointerException #87

Closed darker0n closed 9 years ago

darker0n commented 9 years ago

Please, help me!

Exception in thread "LWJGL Application" java.lang.NullPointerException
at org.lwjgl.opengl.MacOSXContextImplementation.setSwapInterval(MacOSXContextImplementation.java:123)
at org.lwjgl.opengl.ContextGL.setSwapInterval(ContextGL.java:232)
at org.lwjgl.opengl.DrawableGL.setSwapInterval(DrawableGL.java:86)
at org.lwjgl.opengl.Display.setSwapInterval(Display.java:1129)
at org.lwjgl.opengl.Display.setVSyncEnabled(Display.java:1142)
at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setVSync(LwjglGraphics.java:446)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:118)
darker0n commented 9 years ago

I'm only restarted REPL =)

oakes commented 9 years ago

What version of play-clj are you using? Are how are you restarting the REPL?

oakes commented 9 years ago

Don't run the main function more than once in the REPL. Unfortunately libGDX doesn't allow this to work.

oakes commented 9 years ago

Let me know if you have other questions about this.

darker0n commented 9 years ago

ok, thanks