From 83fe4d6c591e289ac646e8fdcee8a4a9e345f20f Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 27 Aug 2025 16:28:49 +0500 Subject: [PATCH] ref: gl: mark gl_frustum_t pointer as const in frustum culling functions --- ref/gl/gl_frustum.c | 4 ++-- ref/gl/gl_frustum.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ref/gl/gl_frustum.c b/ref/gl/gl_frustum.c index 38db4f4d..0e4b2103 100644 --- a/ref/gl/gl_frustum.c +++ b/ref/gl/gl_frustum.c @@ -97,7 +97,7 @@ void GL_FrustumInitOrtho( gl_frustum_t *out, float xLeft, float xRight, float yT } // cull methods -qboolean GL_FrustumCullBox( gl_frustum_t *out, const vec3_t mins, const vec3_t maxs, int userClipFlags ) +qboolean GL_FrustumCullBox( const gl_frustum_t *out, const vec3_t mins, const vec3_t maxs, int userClipFlags ) { int iClipFlags; int i, bit; @@ -158,7 +158,7 @@ qboolean GL_FrustumCullBox( gl_frustum_t *out, const vec3_t mins, const vec3_t m return false; } -qboolean GL_FrustumCullSphere( gl_frustum_t *out, const vec3_t center, float radius, int userClipFlags ) +qboolean GL_FrustumCullSphere( const gl_frustum_t *out, const vec3_t center, float radius, int userClipFlags ) { int iClipFlags; int i, bit; diff --git a/ref/gl/gl_frustum.h b/ref/gl/gl_frustum.h index fcf36f0b..d54ee49b 100644 --- a/ref/gl/gl_frustum.h +++ b/ref/gl/gl_frustum.h @@ -35,7 +35,7 @@ void GL_FrustumInitProj( gl_frustum_t *out, float flZNear, float flZFar, float f void GL_FrustumInitOrtho( gl_frustum_t *out, float xLeft, float xRight, float yTop, float yBottom, float flZNear, float flZFar ); // cull methods -qboolean GL_FrustumCullBox( gl_frustum_t *out, const vec3_t mins, const vec3_t maxs, int userClipFlags ); -qboolean GL_FrustumCullSphere( gl_frustum_t *out, const vec3_t centre, float radius, int userClipFlags ); +qboolean GL_FrustumCullBox( const gl_frustum_t *out, const vec3_t mins, const vec3_t maxs, int userClipFlags ); +qboolean GL_FrustumCullSphere( const gl_frustum_t *out, const vec3_t centre, float radius, int userClipFlags ); #endif//GL_FRUSTUM_H