17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 06:19:19 +02:00

fix(sonar): addressing last reliability/security issues

This commit is contained in:
jerrrrycho
2026-10-07 17:54:41 +02:00
parent d76524f2e7
commit b6f8cf669e

View File

@@ -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( //