sgothel/jogl — pull request #40 by michaelhermannweber (2011-11-05 00:43:28+00:00)
Title: New test case that demonstates bug 523, hang on application exit

New test case that demonstates bug 523, hang on application exit, if GLContext objects are shared across GLWindow instances.

This bug does not manifest in the latest source. I submit this test case for consideration to test for these conditions going forward.

The test case contains its own crude GLEventListener paints two triangles, one using glBegin / glVertex etc., and another using a vertex array buffer. The test case also tests sharing of vertex buffer objects, as I was looking into that behaviour when I encountered the problem. The test case also includes thread synchronization for synchronized resource clean up with the main thread, as that is also part of the behaviour I was investigating.