mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-21 02:43:46 +08:00
cameraview.cc: call glFlush after creating fence
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user