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
611611 // OpenCL program needs to be rebuilt, then reinitialized
612612 impl_->programBuilt = false ;
613613 impl_->programInitialized = false ;
614- impl_->buildProgram (impl_->sourceCode );
615614 }
616615 else if (impl_->config .EnableBilateralFilter != config.EnableBilateralFilter
617616 || impl_->config .EnableEdgeAwareFilter != config.EnableEdgeAwareFilter )
@@ -621,6 +620,8 @@ void OpenCLDepthPacketProcessor::setConfiguration(const libfreenect2::DepthPacke
621620 }
622621
623622 impl_->config = config;
623+ if (!impl_->programBuilt )
624+ impl_->buildProgram (impl_->sourceCode );
624625}
625626
626627void OpenCLDepthPacketProcessor::loadP0TablesFromCommandResponse (unsigned char *buffer, size_t buffer_length)
You can’t perform that action at this time.
0 commit comments