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:
@@ -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( //
|
||||
|
||||
Reference in New Issue
Block a user