cameraview.cc: call glFlush after creating fence

old-commit-hash: 8655f6df6b
commatwo_master
Willem Melching 3 years ago
parent 879033f1ff
commit 0c24902e05
  1. 4
      selfdrive/ui/qt/widgets/cameraview.cc

@ -309,6 +309,10 @@ void CameraViewWidget::vipcThread() {
assert(glGetError() == GL_NO_ERROR);
wait_fence.reset(new WaitFence());
// Ensure the fence is in the GPU command queue, or waiting on it might block
// https://www.khronos.org/opengl/wiki/Sync_Object#Flushing_and_contexts
glFlush();
}
latest_texture_id = buf->idx;
}

Loading…
Cancel
Save