diff --git a/cogl/cogl-color.c b/cogl/cogl-color.c index b23ef4a5b..1f9a01ee9 100644 --- a/cogl/cogl-color.c +++ b/cogl/cogl-color.c @@ -108,7 +108,7 @@ cogl_color_set_from_4f (CoglColor *color, void cogl_color_init_from_4fv (CoglColor *color, - float *color_array) + const float *color_array) { _COGL_RETURN_IF_FAIL (color != NULL); diff --git a/cogl/cogl-color.h b/cogl/cogl-color.h index 5bd7936bc..97d622943 100644 --- a/cogl/cogl-color.h +++ b/cogl/cogl-color.h @@ -169,7 +169,7 @@ cogl_color_set_from_4f (CoglColor *color, */ void cogl_color_init_from_4fv (CoglColor *color, - float *color_array); + const float *color_array); /** * cogl_color_get_red_byte: