simple-egl: Handle missing EGL_EXT_buffer_age better
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 22 Aug 2013 19:16:51 +0000 (12:16 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 26 Aug 2013 22:30:42 +0000 (15:30 -0700)
Including src/weston-egl-ext.h breaks distcheck, so lets just copy the
one EGL_EXT_buffer_age into simple-egl.c.

clients/simple-egl.c

index a557fca..1fd4137 100644 (file)
 #include <EGL/egl.h>
 #include <EGL/eglext.h>
 
-#include <src/weston-egl-ext.h>
-
 #ifndef EGL_EXT_swap_buffers_with_damage
 #define EGL_EXT_swap_buffers_with_damage 1
 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC)(EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
 #endif
 
+#ifndef EGL_EXT_buffer_age
+#define EGL_EXT_buffer_age 1
+#define EGL_BUFFER_AGE_EXT                     0x313D
+#endif
+
 struct window;
 struct seat;