Fix jittering issues when sending GL textures cross-thread.
author Steinar H. Gunderson
()
committer Steinar H. Gunderson
()
commit 234d7fe2828b8e82253548e32081576fc56cbb80
tree 82f9679ba842632d727d939c7900ba077ca11a50
parent aa95245a04e8dd94de03eabcbc72a7140f2283a4
Fix jittering issues when sending GL textures cross-thread.

When rendering into a texture on one thread and rendering _from_ it on another,
we need to properly synchronize the client state. Hook onto the OpenGL fences
that MLT set to properly wait for the rendering commands to be sent to the GPU,
which fixes the jittering we'd otherwise see, due to rendering old frames still
left in the textures because the new ones are not ready yet.
src/monitor.cpp
src/renderer.cpp
src/renderer.h
src/widgets/videoglwidget.cpp
src/widgets/videoglwidget.h