fixed compilation error (without openni2)

This commit is contained in:
matlabbe
2015-03-30 10:19:50 -04:00
parent adb1a8ba22
commit 80c7102e67

View File

@@ -458,11 +458,13 @@ bool CameraOpenNI2::setGain(int value)
bool CameraOpenNI2::setMirroring(bool enabled)
{
#ifdef WITH_OPENNI2
if(_color->isValid() && _depth->isValid())
{
return _depth->setMirroringEnabled(enabled) == openni::STATUS_OK &&
_color->setMirroringEnabled(enabled) == openni::STATUS_OK;
}
#endif
return false;
}