egl: Make eglscreen sleep for five seconds
authorJakob Bornecrantz <wallbraker@gmail.com>
Sun, 18 Jan 2009 12:40:24 +0000 (13:40 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Sun, 18 Jan 2009 12:40:24 +0000 (13:40 +0100)
progs/egl/eglscreen.c

index f3b7f04f96c1c423cc7c79610be59ff16978f2e3..c0b5a210a4abb023512bdea6a4a0259c166f81d5 100644 (file)
@@ -32,6 +32,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#include <unistd.h>
 #include <GL/gl.h>
 #include <EGL/egl.h>
 #include <EGL/eglext.h>
@@ -109,6 +110,8 @@ main(int argc, char *argv[])
                return 0;
        }
 
+       usleep(5000000);
+
        eglDestroySurface(d, screen_surf);
        eglTerminate(d);