egl: Fix warning in eglgears
[mesa.git] / progs / egl / eglgears.c
index 9feee20d889befc0cfa4135f419a42bd0a6ec2a8..a004cb7e8697a4774cd7873e426e985dc7493c1f 100644 (file)
  * Program runs for 5 seconds then exits, outputing framerate to console
  */
 
+#define EGL_EGLEXT_PROTOTYPES
+
+#include <assert.h>
 #include <math.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 #include <GL/gl.h>
 #include <GLES/egl.h>
-#include <assert.h>
+#include <GLES/eglext.h>
 
 #define MAX_CONFIGS 10
 #define MAX_MODES 100
@@ -385,7 +388,7 @@ main(int argc, char *argv[])
        }
        
        /* DBR : Create EGL context/surface etc */
-        d = eglGetDisplay(":0");
+       d = eglGetDisplay((EGLNativeDisplayType)"!EGL_i915");
        assert(d);
 
        if (!eglInitialize(d, &maj, &min)) {