mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +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);
|
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
|
||||||
|
|
Loading…
Reference in a new issue