cogl: GLES3 has sync objects

https://gitlab.gnome.org/GNOME/mutter/merge_requests/882
This commit is contained in:
Adam Jackson 2019-10-22 18:55:11 -04:00 committed by Jonas Ådahl
parent 445af61a68
commit 41992757e0
2 changed files with 4 additions and 1 deletions

View File

@ -366,6 +366,9 @@ _cogl_driver_update_features (CoglContext *context,
_cogl_check_extension ("GL_OES_egl_sync", gl_extensions)) _cogl_check_extension ("GL_OES_egl_sync", gl_extensions))
COGL_FLAGS_SET (private_features, COGL_PRIVATE_FEATURE_OES_EGL_SYNC, TRUE); COGL_FLAGS_SET (private_features, COGL_PRIVATE_FEATURE_OES_EGL_SYNC, TRUE);
if (context->glFenceSync)
COGL_FLAGS_SET (context->features, COGL_FEATURE_ID_FENCE, TRUE);
if (_cogl_check_extension ("GL_EXT_texture_rg", gl_extensions)) if (_cogl_check_extension ("GL_EXT_texture_rg", gl_extensions))
COGL_FLAGS_SET (context->features, COGL_FLAGS_SET (context->features,
COGL_FEATURE_ID_TEXTURE_RG, COGL_FEATURE_ID_TEXTURE_RG,

View File

@ -212,7 +212,7 @@ COGL_EXT_END ()
#ifdef GL_ARB_sync #ifdef GL_ARB_sync
COGL_EXT_BEGIN (sync, 3, 2, COGL_EXT_BEGIN (sync, 3, 2,
0, /* not in either GLES */ COGL_EXT_IN_GLES3,
"ARB:\0", "ARB:\0",
"sync\0") "sync\0")
COGL_EXT_FUNCTION (GLsync, glFenceSync, COGL_EXT_FUNCTION (GLsync, glFenceSync,