FYI, if I change the Q3FlightBenchmark class to use LWJGL instead of JOGL by the following change, I get an error.
Change:
Canvas3DWrapper canvas = Canvas3DWrapper.createStandalone(OpenGLLayer.LWJGL, //vs OpenGLLayer.JOGL
Xith3DTest.DEFAULT_RESOLUTION, "Q3FlightBenchmark");
Exception:
java.lang.NullPointerException
at org.lwjgl.opengl.GL11.glGetInteger(GL11.java:1217)
at com.xith3d.render.lwjgl.CanvasPeerImpl.renderStart(CanvasPeerImpl.java:614)
at com.xith3d.render.lwjgl.CanvasPeerImpl.display(CanvasPeerImpl.java:947)
at com.xith3d.render.lwjgl.CanvasPeerImpl.render(CanvasPeerImpl.java:1060)
at com.xith3d.render.Renderer.renderOnce(Renderer.java:429)
at com.xith3d.render.Renderer.renderOnce(Renderer.java:448)
at com.xith3d.render.Renderer.renderOnce(Renderer.java:463)
at com.xith3d.scenegraph.VirtualUniverse.renderOnce(VirtualUniverse.java:158)
at com.xith3d.scenegraph.View.renderOnce(View.java:593)
at org.xith3d.render.base.Xith3DEnvironment.render(Xith3DEnvironment.java:393)
at org.xith3d.render.loop.RenderLoop.invokeRendering(RenderLoop.java:640)
at org.xith3d.render.loop.RenderLoop.loopIteration(RenderLoop.java:656)
at org.xith3d.test.benchmark.Q3FlightBenchmark.loopIteration(Q3FlightBenchmark.java:163)
at org.xith3d.render.loop.RenderLoop.run(RenderLoop.java:775)
at java.lang.Thread.run(Thread.java:595)
Exception in thread "Thread-5" java.lang.Error: java.lang.NullPointerException
at com.xith3d.render.lwjgl.CanvasPeerImpl.display(CanvasPeerImpl.java:1023)
at com.xith3d.render.lwjgl.CanvasPeerImpl.render(CanvasPeerImpl.java:1060)
at com.xith3d.render.Renderer.renderOnce(Renderer.java:429)
at com.xith3d.render.Renderer.renderOnce(Renderer.java:448)
at com.xith3d.render.Renderer.renderOnce(Renderer.java:463)
at com.xith3d.scenegraph.VirtualUniverse.renderOnce(VirtualUniverse.java:158)
at com.xith3d.scenegraph.View.renderOnce(View.java:593)
at org.xith3d.render.base.Xith3DEnvironment.render(Xith3DEnvironment.java:393)
at org.xith3d.render.loop.RenderLoop.invokeRendering(RenderLoop.java:640)
at org.xith3d.render.loop.RenderLoop.loopIteration(RenderLoop.java:656)
at org.xith3d.test.benchmark.Q3FlightBenchmark.loopIteration(Q3FlightBenchmark.java:163)
at org.xith3d.render.loop.RenderLoop.run(RenderLoop.java:775)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at org.lwjgl.opengl.GL11.glGetInteger(GL11.java:1217)
at com.xith3d.render.lwjgl.CanvasPeerImpl.renderStart(CanvasPeerImpl.java:614)
at com.xith3d.render.lwjgl.CanvasPeerImpl.display(CanvasPeerImpl.java:947)
... 12 more