libobs/graphics: Fix gs_generalize_format warning

warning C26819: Unannotated fallthrough between switch labels (es.78).
This commit is contained in:
jpark37 2021-09-05 01:12:46 -07:00 committed by Jim
parent e2b7597fb0
commit f5b65ec5d3

View File

@ -1010,17 +1010,14 @@ gs_generalize_format(enum gs_color_format format)
{
switch (format) {
case GS_RGBA_UNORM:
format = GS_RGBA;
break;
return GS_RGBA;
case GS_BGRX_UNORM:
format = GS_BGRX;
break;
return GS_BGRX;
case GS_BGRA_UNORM:
format = GS_BGRA;
default:;
return GS_BGRA;
default:
return format;
}
return format;
}
static inline uint32_t gs_get_total_levels(uint32_t width, uint32_t height,