]> git.cworth.org Git - apitrace-tests/blobdiff - apps/egl/gl/tri.c
Automate egl_tri test.
[apitrace-tests] / apps / egl / gl / tri.c
index fb1dde3529cf1275f8acecd44912cb87cfbccbfe..423a948df4a2212ab6afa2ee008b46e6b81cc18a 100644 (file)
 static GLfloat view_rotx = 0.0, view_roty = 0.0, view_rotz = 0.0;
 
 
+static void
+idle(void)
+{
+   exit(0);
+}
+
 static void
 draw(void)
 {
@@ -71,6 +77,8 @@ draw(void)
    }
 
    glPopMatrix();
+
+   eglutIdleFunc(idle);
 }