diff --git a/Src/Graphics/New3D/R3DShader.cpp b/Src/Graphics/New3D/R3DShader.cpp index 57d6324..a05a0f6 100644 --- a/Src/Graphics/New3D/R3DShader.cpp +++ b/Src/Graphics/New3D/R3DShader.cpp @@ -279,6 +279,8 @@ void R3DShader::SetModelStates(const Model* model) MatDet test; //========== + test = MatDet::notset; // happens for bad matrices with NaN + if (model->determinant < 0) { test = MatDet::negative; } else if (model->determinant > 0) { test = MatDet::positive; } else if (model->determinant == 0) { test = MatDet::zero; }