Fix compiler warnings
Simple enumeration checks.
This commit is contained in:
parent
5069f65571
commit
15b952e03e
@ -82,6 +82,8 @@ toggle_builtin_attribute_enabled_cb (int bit_num, void *user_data)
|
|||||||
case COGL_ATTRIBUTE_NAME_ID_NORMAL_ARRAY:
|
case COGL_ATTRIBUTE_NAME_ID_NORMAL_ARRAY:
|
||||||
cap = GL_NORMAL_ARRAY;
|
cap = GL_NORMAL_ARRAY;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
if (enabled)
|
if (enabled)
|
||||||
GE (context, glEnableClientState (cap));
|
GE (context, glEnableClientState (cap));
|
||||||
|
@ -208,6 +208,9 @@ _cogl_pipeline_fragend_fixed_add_layer (CoglPipeline *pipeline,
|
|||||||
case COGL_TEXTURE_TYPE_RECTANGLE:
|
case COGL_TEXTURE_TYPE_RECTANGLE:
|
||||||
gl_target = GL_TEXTURE_RECTANGLE_ARB;
|
gl_target = GL_TEXTURE_RECTANGLE_ARB;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
|
|
||||||
_cogl_set_active_texture_unit (unit_index);
|
_cogl_set_active_texture_unit (unit_index);
|
||||||
|
@ -139,6 +139,11 @@ _cogl_gl_util_get_texture_target_string (CoglTextureType texture_type,
|
|||||||
target_string = "2DRect";
|
target_string = "2DRect";
|
||||||
tex_coord_swizzle = "st";
|
tex_coord_swizzle = "st";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
target_string = "Unknown";
|
||||||
|
tex_coord_swizzle = NULL;
|
||||||
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (target_string_out)
|
if (target_string_out)
|
||||||
|
Loading…
Reference in New Issue
Block a user