mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
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);
|
swizzle);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* flow through */
|
G_GNUC_FALLTHROUGH;
|
||||||
case COGL_PIPELINE_COMBINE_SOURCE_PRIMARY_COLOR:
|
case COGL_PIPELINE_COMBINE_SOURCE_PRIMARY_COLOR:
|
||||||
g_string_append_printf (shader_source, "cogl_color_in.%s", swizzle);
|
g_string_append_printf (shader_source, "cogl_color_in.%s", swizzle);
|
||||||
break;
|
break;
|
||||||
|
@ -133,8 +133,7 @@ _cogl_driver_pixel_format_to_gl (CoglContext *context,
|
|||||||
required_format = format;
|
required_format = format;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* flow through */
|
G_GNUC_FALLTHROUGH;
|
||||||
|
|
||||||
/* Just one 24-bit ordering supported */
|
/* Just one 24-bit ordering supported */
|
||||||
case COGL_PIXEL_FORMAT_RGB_888:
|
case COGL_PIXEL_FORMAT_RGB_888:
|
||||||
case COGL_PIXEL_FORMAT_BGR_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;
|
gltype = GL_UNSIGNED_INT_2_10_10_10_REV_EXT;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
G_GNUC_FALLTHROUGH;
|
||||||
#endif
|
#endif
|
||||||
case COGL_PIXEL_FORMAT_BGRA_1010102:
|
case COGL_PIXEL_FORMAT_BGRA_1010102:
|
||||||
case COGL_PIXEL_FORMAT_BGRA_1010102_PRE:
|
case COGL_PIXEL_FORMAT_BGRA_1010102_PRE:
|
||||||
|
Loading…
Reference in New Issue
Block a user