mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
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)
This commit is contained in:
parent
bb1f787e6a
commit
d39f4b8a16
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user