svga: add missing fallthrough comments
[mesa.git] / src / mesa / main / formats.c
index 114ea5218beb1a2472fc2c65fc9eb2e550815ecd..0bca52fde50c697eb3728cda42e6e46f0aa95d38 100644 (file)
@@ -404,7 +404,7 @@ _mesa_array_format_flip_channels(mesa_array_format format)
    num_channels = _mesa_array_format_get_num_channels(format);
    _mesa_array_format_get_swizzle(format, swizzle);
 
-   if (num_channels == 1)
+   if (num_channels == 1 || num_channels == 3)
       return format;
 
    if (num_channels == 2) {