cogl: Add const to some pointer arguments
Some of the arguments to the material and path functions were taking a pointer to a CoglColor or an array of floats that was not intended to be written to but were not marked with const.
This commit is contained in:
parent
de1f4885dd
commit
d99a8bf694
@ -3899,7 +3899,7 @@ cogl_material_set_blend (CoglHandle handle,
|
|||||||
|
|
||||||
void
|
void
|
||||||
cogl_material_set_blend_constant (CoglHandle handle,
|
cogl_material_set_blend_constant (CoglHandle handle,
|
||||||
CoglColor *constant_color)
|
const CoglColor *constant_color)
|
||||||
{
|
{
|
||||||
#ifndef HAVE_COGL_GLES
|
#ifndef HAVE_COGL_GLES
|
||||||
CoglMaterial *material = COGL_MATERIAL (handle);
|
CoglMaterial *material = COGL_MATERIAL (handle);
|
||||||
@ -4590,7 +4590,7 @@ changed:
|
|||||||
void
|
void
|
||||||
cogl_material_set_layer_combine_constant (CoglHandle handle,
|
cogl_material_set_layer_combine_constant (CoglHandle handle,
|
||||||
int layer_index,
|
int layer_index,
|
||||||
CoglColor *constant_color)
|
const CoglColor *constant_color)
|
||||||
{
|
{
|
||||||
CoglMaterial *material = COGL_MATERIAL (handle);
|
CoglMaterial *material = COGL_MATERIAL (handle);
|
||||||
CoglMaterialLayerState state = COGL_MATERIAL_LAYER_STATE_COMBINE_CONSTANT;
|
CoglMaterialLayerState state = COGL_MATERIAL_LAYER_STATE_COMBINE_CONSTANT;
|
||||||
@ -4671,7 +4671,7 @@ changed:
|
|||||||
void
|
void
|
||||||
cogl_material_set_layer_matrix (CoglHandle handle,
|
cogl_material_set_layer_matrix (CoglHandle handle,
|
||||||
int layer_index,
|
int layer_index,
|
||||||
CoglMatrix *matrix)
|
const CoglMatrix *matrix)
|
||||||
{
|
{
|
||||||
CoglMaterial *material = COGL_MATERIAL (handle);
|
CoglMaterial *material = COGL_MATERIAL (handle);
|
||||||
CoglMaterialLayerState state = COGL_MATERIAL_LAYER_STATE_USER_MATRIX;
|
CoglMaterialLayerState state = COGL_MATERIAL_LAYER_STATE_USER_MATRIX;
|
||||||
|
@ -593,7 +593,7 @@ cogl_material_set_blend (CoglHandle material,
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
cogl_material_set_blend_constant (CoglHandle material,
|
cogl_material_set_blend_constant (CoglHandle material,
|
||||||
CoglColor *constant_color);
|
const CoglColor *constant_color);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cogl_material_set_layer:
|
* cogl_material_set_layer:
|
||||||
@ -744,7 +744,7 @@ cogl_material_set_layer_combine (CoglHandle material,
|
|||||||
void
|
void
|
||||||
cogl_material_set_layer_combine_constant (CoglHandle material,
|
cogl_material_set_layer_combine_constant (CoglHandle material,
|
||||||
int layer_index,
|
int layer_index,
|
||||||
CoglColor *constant);
|
const CoglColor *constant);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cogl_material_set_layer_matrix:
|
* cogl_material_set_layer_matrix:
|
||||||
@ -758,7 +758,7 @@ cogl_material_set_layer_combine_constant (CoglHandle material,
|
|||||||
void
|
void
|
||||||
cogl_material_set_layer_matrix (CoglHandle material,
|
cogl_material_set_layer_matrix (CoglHandle material,
|
||||||
int layer_index,
|
int layer_index,
|
||||||
CoglMatrix *matrix);
|
const CoglMatrix *matrix);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cogl_material_get_layers:
|
* cogl_material_get_layers:
|
||||||
|
@ -746,7 +746,7 @@ cogl_path_line (float x_1,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cogl_path_polyline (float *coords,
|
cogl_path_polyline (const float *coords,
|
||||||
int num_points)
|
int num_points)
|
||||||
{
|
{
|
||||||
int c = 0;
|
int c = 0;
|
||||||
@ -758,7 +758,7 @@ cogl_path_polyline (float *coords,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cogl_path_polygon (float *coords,
|
cogl_path_polygon (const float *coords,
|
||||||
int num_points)
|
int num_points)
|
||||||
{
|
{
|
||||||
cogl_path_polyline (coords, num_points);
|
cogl_path_polyline (coords, num_points);
|
||||||
|
@ -303,7 +303,7 @@ cogl_path_line (float x_1,
|
|||||||
* be constructed.
|
* be constructed.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
cogl_path_polyline (float *coords,
|
cogl_path_polyline (const float *coords,
|
||||||
int num_points);
|
int num_points);
|
||||||
|
|
||||||
|
|
||||||
@ -322,7 +322,7 @@ cogl_path_polyline (float *coords,
|
|||||||
* fashion for the rest of the vertices.
|
* fashion for the rest of the vertices.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
cogl_path_polygon (float *coords,
|
cogl_path_polygon (const float *coords,
|
||||||
int num_points);
|
int num_points);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user