X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=apps%2Fegl%2Fgles1%2Ftri.c;fp=apps%2Fegl%2Fgles1%2Ftri.c;h=8b68c77652374eaf54921010d663f32487f10d4f;hb=ce8d26ecebe771ab246075f5782dd440c56dcea8;hp=01ad9bd37e468cc318a2f04d305558d79ed09e77;hpb=c40e80b266adafc32558599446b72b89e5cfd3f9;p=apitrace-tests diff --git a/apps/egl/gles1/tri.c b/apps/egl/gles1/tri.c index 01ad9bd..8b68c77 100644 --- a/apps/egl/gles1/tri.c +++ b/apps/egl/gles1/tri.c @@ -31,6 +31,7 @@ #include #include #include +#include #include /* use OpenGL ES 1.x */ #include #include @@ -45,6 +46,13 @@ static GLfloat view_rotx = 0.0, view_roty = 0.0, view_rotz = 0.0; +static void +idle(void) +{ + exit(0); +} + + static void draw(void) { @@ -109,6 +117,8 @@ draw(void) } glPopMatrix(); + + eglutIdleFunc(idle); }