Merge remote branch 'nouveau/gallium-0.1' into gallium-0.2
[mesa.git] / progs / trivial / tri.c
index aa45adb6c2901e4500e1926bf6a1319cd800a030..d3c6b59ea5d1924d565a1a440ccf03a566db4208 100644 (file)
@@ -57,16 +57,13 @@ static void Reshape(int width, int height)
 
 static void Key(unsigned char key, int x, int y)
 {
-
-    switch (key) {
-      case 27:
-         glutDestroyWindow(win);
-       exit(0);
-      default:
-       return;
-    }
-
-    glutPostRedisplay();
+   switch (key) {
+   case 27:
+      exit(0);
+   default:
+      glutPostRedisplay();
+      return;
+   }
 }
 
 static void Draw(void)