X-Git-Url: http://git.megacz.com/?p=anneal.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fqfat%2FMeshViewer.java;h=7dc5b0a0cc31dba3d36f687661d199b4ba1f8511;hp=3192c83137f2a85cb2b8902b5faa14ce05f3f40b;hb=2f48eabf8a07e99905e1eae0b64b5a2abecb01fe;hpb=6fc720977d26dc1f154a3c0802c3beabd347d673 diff --git a/src/edu/berkeley/qfat/MeshViewer.java b/src/edu/berkeley/qfat/MeshViewer.java index 3192c83..7dc5b0a 100644 --- a/src/edu/berkeley/qfat/MeshViewer.java +++ b/src/edu/berkeley/qfat/MeshViewer.java @@ -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);