diff options
Diffstat (limited to 'progs/egl/eglgears.c')
-rw-r--r-- | progs/egl/eglgears.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/progs/egl/eglgears.c b/progs/egl/eglgears.c index 9feee20d889..a004cb7e869 100644 --- a/progs/egl/eglgears.c +++ b/progs/egl/eglgears.c @@ -27,13 +27,16 @@ * 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)) { |