cogl/gl: Fix switch passthrough warnings
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2319>
This commit is contained in:
parent
40627f88cf
commit
c9125aba73
@ -534,7 +534,7 @@ add_arg (CoglPipelineShaderState *shader_state,
|
||||
swizzle);
|
||||
break;
|
||||
}
|
||||
/* flow through */
|
||||
G_GNUC_FALLTHROUGH;
|
||||
case COGL_PIPELINE_COMBINE_SOURCE_PRIMARY_COLOR:
|
||||
g_string_append_printf (shader_source, "cogl_color_in.%s", swizzle);
|
||||
break;
|
||||
|
@ -133,8 +133,7 @@ _cogl_driver_pixel_format_to_gl (CoglContext *context,
|
||||
required_format = format;
|
||||
break;
|
||||
}
|
||||
/* flow through */
|
||||
|
||||
G_GNUC_FALLTHROUGH;
|
||||
/* Just one 24-bit ordering supported */
|
||||
case COGL_PIXEL_FORMAT_RGB_888:
|
||||
case COGL_PIXEL_FORMAT_BGR_888:
|
||||
@ -155,6 +154,7 @@ _cogl_driver_pixel_format_to_gl (CoglContext *context,
|
||||
gltype = GL_UNSIGNED_INT_2_10_10_10_REV_EXT;
|
||||
break;
|
||||
}
|
||||
G_GNUC_FALLTHROUGH;
|
||||
#endif
|
||||
case COGL_PIXEL_FORMAT_BGRA_1010102:
|
||||
case COGL_PIXEL_FORMAT_BGRA_1010102_PRE:
|
||||
|
Loading…
Reference in New Issue
Block a user