summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/demos/proceduralTexturePhysics/Water.java3
-rw-r--r--src/demos/vertexProgRefract/VertexProgRefract.java6
2 files changed, 7 insertions, 2 deletions
diff --git a/src/demos/proceduralTexturePhysics/Water.java b/src/demos/proceduralTexturePhysics/Water.java
index 701a10f..4bf8f14 100644
--- a/src/demos/proceduralTexturePhysics/Water.java
+++ b/src/demos/proceduralTexturePhysics/Water.java
@@ -453,6 +453,9 @@ public class Water {
singleStep = false;
}
+ // Force rendering to pbuffer to complete
+ gl.glFlush();
+
if (slow && (slowDelay > 0) ) {
try {
Thread.sleep(slowDelay);
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();
}