From b6f8cf669e1d2e46a62d0f437470a775dab75765 Mon Sep 17 00:00:00 2001 From: jerrrrycho Date: Wed, 7 Oct 2026 17:54:41 +0200 Subject: [PATCH] fix(sonar): addressing last reliability/security issues --- rendering/opengl33renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rendering/opengl33renderer.cpp b/rendering/opengl33renderer.cpp index 8cdb5293..772363e5 100644 --- a/rendering/opengl33renderer.cpp +++ b/rendering/opengl33renderer.cpp @@ -1483,7 +1483,7 @@ glm::mat4 opengl33_renderer::perspective_projection_raw(float fovy, float aspect { if (GLAD_GL_ARB_clip_control || GLAD_GL_EXT_clip_control) { - const float f = 1.0f / tan(fovy / 2.0f); + const float f = 1.0f / std::tan(fovy / 2.0f); // when clip_control available, use projection matrix with 1..0 Z range and infinite zfar return glm::mat4( //