Skip to content

Commit

Permalink
constness fix
Browse files Browse the repository at this point in the history
  • Loading branch information
res2k committed Nov 23, 2024
1 parent a1d93b2 commit 2326111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/refresh/shader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 2326111

Please sign in to comment.