checkpoint
[anneal.git] / src / edu / berkeley / qfat / MeshViewer.java
index 3192c83..7dc5b0a 100644 (file)
@@ -89,6 +89,7 @@ public class MeshViewer implements GLEventListener, MouseListener, MouseMotionLi
     public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) { }
     public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) { }
     public synchronized void display(GLAutoDrawable drawable) {
+        if (translations==null) return;
         GL gl = drawable.getGL();
         GLU glu = new GLU();
         gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);