Executing this application on OS-X produces the following exception.
java.lang.RuntimeException: Error creating framebuffer object with size 109x85 (status code is 0x0)
at com.sun.prism.es2.ES2RTTexture.create(ES2RTTexture.java:175)
at com.sun.prism.es2.ES2ResourceFactory.createRTTexture(ES2ResourceFactory.java:53)
at com.sun.prism.es2.ES2SwapChain.createGraphics(ES2SwapChain.java:187)
at com.sun.prism.es2.ES2SwapChain.createGraphics(ES2SwapChain.java:23)
at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:60)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at com.sun.prism.render.RenderJob.run(RenderJob.java:39)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:102)
at java.lang.Thread.run(Thread.java:680)
Assertion failed: ([NSOpenGLContext currentContext] == self->currentContext), function -[GlassView3D end:], file /HUDSON/workspace/2.1/label/macosx-universal-14/glass/glass-mat-lib-macosx/src/com/sun/mat/ui/GlassView3D.m, line 482.
It might be that this also happens with a standard JavaFX 2.1 application but I was unable to launch such one using the latest build on my OS-X workstation