weston-egl: Allow compilation against older EGL stack
authorRob Bradford <rob@linux.intel.com>
Fri, 22 Mar 2013 14:15:49 +0000 (14:15 +0000)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 22 Mar 2013 14:38:16 +0000 (10:38 -0400)
Provide a definition of EGL_BUFFER_AGE_EXT so that you can compile against an
EGL stack that may not yet support that extension.

src/weston-egl-ext.h

index 1d4b76b..fe02368 100644 (file)
@@ -58,4 +58,8 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay dpy, st
 #define EGL_TEXTURE_EXTERNAL_WL         0x31DA
 #endif
 
+#ifndef EGL_BUFFER_AGE_EXT
+#define EGL_BUFFER_AGE_EXT              0x313D
+#endif
+
 #endif