diff --git a/cogl/cogl-journal-private.h b/cogl/cogl-journal-private.h index dc008f67a..a410c8ff0 100644 --- a/cogl/cogl-journal-private.h +++ b/cogl/cogl-journal-private.h @@ -51,7 +51,7 @@ _cogl_journal_log_quad (float x_1, int n_layers, guint32 fallback_layers, GLuint layer0_override_texture, - float *tex_coords, + const float *tex_coords, unsigned int tex_coords_len); #endif /* __COGL_JOURNAL_PRIVATE_H */ diff --git a/cogl/cogl-journal.c b/cogl/cogl-journal.c index db406ea9c..e05068365 100644 --- a/cogl/cogl-journal.c +++ b/cogl/cogl-journal.c @@ -631,7 +631,7 @@ _cogl_journal_log_quad (float x_1, int n_layers, guint32 fallback_layers, GLuint layer0_override_texture, - float *tex_coords, + const float *tex_coords, unsigned int tex_coords_len) { size_t stride; diff --git a/cogl/cogl-primitives.c b/cogl/cogl-primitives.c index 4a614e1c5..58fec0240 100644 --- a/cogl/cogl-primitives.c +++ b/cogl/cogl-primitives.c @@ -71,8 +71,8 @@ static void log_quad_sub_textures_cb (CoglHandle texture_handle, GLuint gl_handle, GLenum gl_target, - float *subtexture_coords, - float *virtual_coords, + const float *subtexture_coords, + const float *virtual_coords, void *user_data) { TextureSlicedQuadState *state = user_data; @@ -638,11 +638,11 @@ cogl_rectangle (float x_1, void draw_polygon_sub_texture_cb (CoglHandle tex_handle, - GLuint gl_handle, - GLenum gl_target, - float *subtexture_coords, - float *virtual_coords, - void *user_data) + GLuint gl_handle, + GLenum gl_target, + const float *subtexture_coords, + const float *virtual_coords, + void *user_data) { TextureSlicedPolygonState *state = user_data; GLfloat *v; diff --git a/cogl/cogl-texture-private.h b/cogl/cogl-texture-private.h index 9ea5fbfb2..ee018faf4 100644 --- a/cogl/cogl-texture-private.h +++ b/cogl/cogl-texture-private.h @@ -37,8 +37,8 @@ typedef struct _CoglTextureUploadData CoglTextureUploadData; typedef void (*CoglTextureSliceCallback) (CoglHandle handle, GLuint gl_handle, GLenum gl_target, - float *slice_coords, - float *virtual_coords, + const float *slice_coords, + const float *virtual_coords, void *user_data); typedef void (* CoglTextureManualRepeatCallback) (const float *coords,