File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -611,7 +611,6 @@ void OpenCLDepthPacketProcessor::setConfiguration(const libfreenect2::DepthPacke
611
611
// OpenCL program needs to be rebuilt, then reinitialized
612
612
impl_->programBuilt = false ;
613
613
impl_->programInitialized = false ;
614
- impl_->buildProgram (impl_->sourceCode );
615
614
}
616
615
else if (impl_->config .EnableBilateralFilter != config.EnableBilateralFilter
617
616
|| impl_->config .EnableEdgeAwareFilter != config.EnableEdgeAwareFilter )
@@ -621,6 +620,8 @@ void OpenCLDepthPacketProcessor::setConfiguration(const libfreenect2::DepthPacke
621
620
}
622
621
623
622
impl_->config = config;
623
+ if (!impl_->programBuilt )
624
+ impl_->buildProgram (impl_->sourceCode );
624
625
}
625
626
626
627
void OpenCLDepthPacketProcessor::loadP0TablesFromCommandResponse (unsigned char *buffer, size_t buffer_length)
You can’t perform that action at this time.
0 commit comments