Skip to content
Snippets Groups Projects
Commit fa6e03a7 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Fix for segv on gui start

parent 0234c4ad
Branches
Tags
No related merge requests found
......@@ -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);
......
......@@ -194,7 +194,7 @@ void MiddleburySource::_performDisparity() {
}
bool MiddleburySource::grab(int n, int b) {
_performDisparity();
//_performDisparity();
return true;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment