mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +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
424426f486
commit
69a90b5bfe
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);
|
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);
|
||||||
GST_LOG ("setting sync object %p", sync_meta->glsync);
|
|
||||||
}
|
|
||||||
gl->Flush ();
|
gl->Flush ();
|
||||||
|
GST_LOG ("setting sync object %p", sync_meta->glsync);
|
||||||
|
} else {
|
||||||
|
gl->Finish ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue