mesa/vbo: add some missing fallthrough comments
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 1 Jul 2020 06:07:54 +0000 (16:07 +1000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Jul 2020 23:52:52 +0000 (23:52 +0000)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5705>

src/mesa/vbo/vbo_save_api.c

index d6f9b53d68a60ecf34b6a60bd7a48d25e654316d..4e138f25c5b2d32a40124f3b165779db973c86f1 100644 (file)
@@ -739,10 +739,13 @@ copy_from_current(struct gl_context *ctx)
       switch (save->attrsz[i]) {
       case 4:
          save->attrptr[i][3] = save->current[i][3];
+         /* fallthrough */
       case 3:
          save->attrptr[i][2] = save->current[i][2];
+         /* fallthrough */
       case 2:
          save->attrptr[i][1] = save->current[i][1];
+         /* fallthrough */
       case 1:
          save->attrptr[i][0] = save->current[i][0];
          break;