From 21329712dd03066ede7b9f7dd5975f11bcd9ccac Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sun, 13 Nov 2005 06:42:16 +0000 Subject: Added workaround for problem on Mac OS X 10.4.3 where could not share textures and display lists between a pbuffer and an on-screen OpenGL context; now specify pbuffer support for all created contexts. Tested on 10.3.9 and 10.4.3. See 4129317 on Apple's Bug Reporter for first report of this bug. Added workaround for older OpenGL version strings being reported with older graphics cards on OS X; now attempt to parse vendor-specific version string. Added workaround for ProceduralTexturePhysics demo on OS X where pbuffer's rendering results were not being flushed each frame; this demo is now working properly on 10.4.3 with recent hardware. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@148 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4 --- src/demos/vertexProgRefract/VertexProgRefract.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/demos/vertexProgRefract/VertexProgRefract.java') diff --git a/src/demos/vertexProgRefract/VertexProgRefract.java b/src/demos/vertexProgRefract/VertexProgRefract.java index 8663d39..a01a5d7 100644 --- a/src/demos/vertexProgRefract/VertexProgRefract.java +++ b/src/demos/vertexProgRefract/VertexProgRefract.java @@ -453,8 +453,10 @@ public class VertexProgRefract extends Demo { // Internals only below this point // public void shutdownDemo() { - ManipManager.getManipManager().unregisterWindow(drawable); - drawable.removeGLEventListener(this); + if (drawable != null) { + ManipManager.getManipManager().unregisterWindow(drawable); + drawable.removeGLEventListener(this); + } super.shutdownDemo(); } -- cgit v1.2.3