diff --git a/applications/gui/src/screen.cpp b/applications/gui/src/screen.cpp index f8a04494a1f23ec438ff1b5baf8599f839b349f2..32b54c630df56678e5f30d72cef1608d107bb14a 100644 --- a/applications/gui/src/screen.cpp +++ b/applications/gui/src/screen.cpp @@ -338,7 +338,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; }