[cogl/cogl-1.16] gl: #ifdef guard ARB_sync api in cogl-all-functions.h



commit d39f4b8a16a4ddd57f2f2ceb5bf98c776de76bbe
Author: Robert Bragg <robert linux intel com>
Date:   Tue May 28 23:28:51 2013 +0100

    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 <neil linux intel com>
    
    (cherry picked from commit ba79020e0f5b102e8b25cd831c408dd68d241297)

 cogl/gl-prototypes/cogl-all-functions.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/cogl/gl-prototypes/cogl-all-functions.h b/cogl/gl-prototypes/cogl-all-functions.h
index d774e45..392f8c8 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]