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
parent 424426f486
commit 69a90b5bfe

View file

@ -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);
GST_LOG ("setting sync object %p", sync_meta->glsync);
}
gl->Flush ();
GST_LOG ("setting sync object %p", sync_meta->glsync);
} else {
gl->Finish ();
}
}
void