From 23261114219802344ea41a000828c3ca50512aee Mon Sep 17 00:00:00 2001 From: Frank Richter Date: Sat, 23 Nov 2024 17:39:14 +0100 Subject: [PATCH] constness fix --- src/refresh/shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/refresh/shader.c b/src/refresh/shader.c index da360f834..95ccecf7c 100644 --- a/src/refresh/shader.c +++ b/src/refresh/shader.c @@ -1096,7 +1096,7 @@ static inline float fade_distance_to_light(const dlight_t *dl) return 1.0f - smoothstep(min_frag_dist, 1.0f, frac_to_end); } -static void cone_to_bounding_sphere(vec3_t origin, vec3_t forward, float size, float angle_radians, float c, float s, vec4_t out) +static void cone_to_bounding_sphere(const vec3_t origin, const vec3_t forward, float size, float angle_radians, float c, float s, vec4_t out) { if(angle_radians > M_PI/4.0f) {