mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
gl/syncmeta: implement synchronisation without glFenceSync
Uses glFinish as that's the best we have for lesser OpenGL versions.
This commit is contained in:
parent
8cad1e5b49
commit
9f9e0e87cf
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue