From 69a90b5bfebc3488cfc18c8ee5f0937b0e18e87e Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Sat, 8 Aug 2015 17:22:05 +0200 Subject: [PATCH] gl/syncmeta: implement synchronisation without glFenceSync Uses glFinish as that's the best we have for lesser OpenGL versions. --- gst-libs/gst/gl/gstglsyncmeta.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstglsyncmeta.c b/gst-libs/gst/gl/gstglsyncmeta.c index 23806aa514..f680353fb0 100644 --- a/gst-libs/gst/gl/gstglsyncmeta.c +++ b/gst-libs/gst/gl/gstglsyncmeta.c @@ -69,9 +69,11 @@ _set_sync_point (GstGLContext * context, GstGLSyncMeta * sync_meta) gl->DeleteSync (sync_meta->glsync); } sync_meta->glsync = gl->FenceSync (GL_SYNC_GPU_COMMANDS_COMPLETE, 0); + gl->Flush (); GST_LOG ("setting sync object %p", sync_meta->glsync); + } else { + gl->Finish (); } - gl->Flush (); } void