mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
mark readonly parameters as const
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
CGLM_INLINE
|
||||
float
|
||||
glm_luminance(vec3 rgb) {
|
||||
glm_luminance(const vec3 rgb) {
|
||||
vec3 l = {0.212671f, 0.715160f, 0.072169f};
|
||||
return glm_dot(rgb, l);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user