cogl: Fix const qualifier usage

This commit is contained in:
Jonas Ådahl 2019-01-20 11:39:21 +01:00
parent c55004864d
commit bbd295ae09
3 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ typedef enum
typedef struct _CoglAttributeNameState
{
char *name;
const char *name;
CoglAttributeNameID name_id;
int name_index;
CoglBool normalized_default;

View File

@ -67,7 +67,7 @@ COGL_GTYPE_DEFINE_CLASS (Attribute, attribute);
static CoglBool
validate_cogl_attribute_name (const char *name,
char **real_attribute_name,
const char **real_attribute_name,
CoglAttributeNameID *name_id,
CoglBool *normalized,
int *layer_number)

View File

@ -389,7 +389,7 @@ strideof (CoglAttributeType type, int n_components)
static char *
canonize_attribute_name (const char *attribute_name)
{
char *detail_seperator = NULL;
const char *detail_seperator = NULL;
int name_len;
if (strncmp (attribute_name, "gl_", 3) != 0)