From d39f4b8a16a4ddd57f2f2ceb5bf98c776de76bbe Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Tue, 28 May 2013 23:28:51 +0100 Subject: [PATCH] gl: #ifdef guard ARB_sync api in cogl-all-functions.h The ARB_sync api depends on a GLsync type which may not be available if GL_ARB_sync isn't defined, such as when building for gles2 only. This guards the prototypes with #ifdef GL_ARB_sync to fix compilation when a GLsync type isn't defined. Reviewed-by: Neil Roberts (cherry picked from commit ba79020e0f5b102e8b25cd831c408dd68d241297) --- cogl/gl-prototypes/cogl-all-functions.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cogl/gl-prototypes/cogl-all-functions.h b/cogl/gl-prototypes/cogl-all-functions.h index d774e4502..392f8c8ff 100644 --- a/cogl/gl-prototypes/cogl-all-functions.h +++ b/cogl/gl-prototypes/cogl-all-functions.h @@ -298,6 +298,7 @@ COGL_EXT_FUNCTION (GLvoid *, glMapBufferRange, GLbitfield access)) COGL_EXT_END () +#ifdef GL_ARB_sync COGL_EXT_BEGIN (sync, 3, 2, 0, /* not in either GLES */ "ARB:\0", @@ -309,3 +310,4 @@ COGL_EXT_FUNCTION (GLenum, glClientWaitSync, COGL_EXT_FUNCTION (void, glDeleteSync, (GLsync sync)) COGL_EXT_END () +#endif