Skip to content
Snippets Groups Projects
Commit 1a3db96b authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Bug note

parent 9ff87a7a
No related branches found
No related tags found
No related merge requests found
Pipeline #30008 passed
......@@ -366,6 +366,8 @@ bool OpenVRRender::retrieve(ftl::data::Frame &frame_out) {
texture1_.make(width, height, ftl::utility::GLTexture::Type::BGRA);
texture2_.make(width, height, ftl::utility::GLTexture::Type::BGRA);
// FIXME: Using same buffer each frame results in race if previous frame is still being used
// eg. if recording the VR view then the recording can sometimes get the next frame instead.
rgbdframe.create<cv::cuda::GpuMat>(Channel::Colour) = texture1_.map(rgbdframe.stream());
rgbdframe.create<cv::cuda::GpuMat>(Channel::Colour2) = texture2_.map(rgbdframe.stream());
rgbdframe.create<cv::cuda::GpuMat>(Channel::Depth).create(height, width, CV_32F);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment