diff --git a/applications/gui/src/screen.cpp b/applications/gui/src/screen.cpp index e451e48194bf0ac8c3bca4a28e3b6d8a3a5fede7..d6244156fbec1880e78aa386171d10be6d452b97 100644 --- a/applications/gui/src/screen.cpp +++ b/applications/gui/src/screen.cpp @@ -337,7 +337,7 @@ void ftl::gui::Screen::draw(NVGcontext *ctx) { mImageID = camera_->captureFrame().texture(); - if (imageSize[0] > 0) { + if (mImageID < std::numeric_limits<unsigned int>::max() && imageSize[0] > 0) { auto mScale = (screenSize.cwiseQuotient(imageSize).minCoeff()); Vector2f scaleFactor = mScale * imageSize.cwiseQuotient(screenSize); Vector2f positionInScreen(0.0f, 0.0f); diff --git a/components/rgbd-sources/src/middlebury_source.cpp b/components/rgbd-sources/src/middlebury_source.cpp index 463491439f8ee22324be1ca92f879a4b8adaca23..296d7b6e8c95520df9824316a89f4bf5d74c489a 100644 --- a/components/rgbd-sources/src/middlebury_source.cpp +++ b/components/rgbd-sources/src/middlebury_source.cpp @@ -194,7 +194,7 @@ void MiddleburySource::_performDisparity() { } bool MiddleburySource::grab(int n, int b) { - _performDisparity(); + //_performDisparity(); return true; }