From aa4d729e484807421a0334b9e0a6295f47424fb1 Mon Sep 17 00:00:00 2001 From: tetrisplusplus Date: Mon, 23 Jan 2023 21:05:35 +0900 Subject: [PATCH] Added test_isOrthogonal for zero matrix --- test/gtx/gtx_matrix_query.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/gtx/gtx_matrix_query.cpp b/test/gtx/gtx_matrix_query.cpp index 0dda1f09..744d3e58 100644 --- a/test/gtx/gtx_matrix_query.cpp +++ b/test/gtx/gtx_matrix_query.cpp @@ -45,8 +45,14 @@ int test_isOrthogonal() { int Error(0); - bool TestA = glm::isOrthogonal(glm::mat4(1), 0.00001f); - Error += TestA ? 0 : 1; + { + bool TestA = glm::isOrthogonal(glm::mat4(1), 0.00001f); + Error += TestA ? 0 : 1; + } + { + bool TestA = glm::isOrthogonal(glm::mat4(0), 0.00001f); + Error += TestA ? 1 : 0; + } return Error; }