Skip to content

Commit

Permalink
cameraview.cc: call glFlush after creating fence
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm committed Jan 4, 2022
1 parent 5264485 commit 8655f6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions selfdrive/ui/qt/widgets/cameraview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8655f6d

Please sign in to comment.