From 53182717cf46663e85f2138d3e74d256564ede06 Mon Sep 17 00:00:00 2001 From: David Doan Date: Sun, 10 Dec 2023 17:31:10 -0500 Subject: gui appears, slow/no render --- src/vec4ops/vec4ops.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/vec4ops') diff --git a/src/vec4ops/vec4ops.cpp b/src/vec4ops/vec4ops.cpp index 70c018b..ecac3b1 100644 --- a/src/vec4ops/vec4ops.cpp +++ b/src/vec4ops/vec4ops.cpp @@ -1,3 +1,5 @@ +#include +#include #include #include "vec4ops.h" #include "settings.h" @@ -49,7 +51,8 @@ glm::mat4 Vec4Ops::getViewMatrix4( // calculate e3 basis vector, the transformation col of view matrix if (glm::distance(fromPoint, toPoint) < 0.0001f) { - throw std::runtime_error("fromPoint and toPoint are the same"); + // throw std::runtime_error("fromPoint and toPoint are the same"); + std::cout << "warn: fromPoint and toPoint are the same" << std::endl; } glm::vec4 e3 = glm::normalize(fromPoint - toPoint); -- cgit v1.2.3-70-g09d2