1
0
Fork 0

cogl/gl: Fix switch passthrough warnings

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2319>
This commit is contained in:
Jonas Ådahl 2022-03-04 20:46:21 +01:00 committed by Marge Bot
parent 40627f88cf
commit c9125aba73
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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: