gl/syncmeta: implement synchronisation without glFenceSync

Uses glFinish as that's the best we have for lesser OpenGL versions.
This commit is contained in:
Matthew Waters 2015-08-08 17:22:05 +02:00 committed by Tim-Philipp Müller
parent 8cad1e5b49
commit 9f9e0e87cf

View file

@ -69,9 +69,11 @@ _set_sync_point (GstGLContext * context, GstGLSyncMeta * sync_meta)
gl->DeleteSync (sync_meta->glsync); gl->DeleteSync (sync_meta->glsync);
} }
sync_meta->glsync = gl->FenceSync (GL_SYNC_GPU_COMMANDS_COMPLETE, 0); sync_meta->glsync = gl->FenceSync (GL_SYNC_GPU_COMMANDS_COMPLETE, 0);
gl->Flush ();
GST_LOG ("setting sync object %p", sync_meta->glsync); GST_LOG ("setting sync object %p", sync_meta->glsync);
} else {
gl->Finish ();
} }
gl->Flush ();
} }
void void