diff options
author | Timothy Arceri <[email protected]> | 2020-07-01 16:07:54 +1000 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-02 23:52:52 +0000 |
commit | d88447d5ce47cfb2306a3ff58caa2e2610c653dc (patch) | |
tree | e4e2061d0baa4b3de9bf9480c526408058c6deba /src/mesa | |
parent | cb8cd64411316ca94ef1bb1f95374bbf405f13da (diff) |
mesa/vbo: add some missing fallthrough comments
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5705>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/vbo/vbo_save_api.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c index d6f9b53d68a..4e138f25c5b 100644 --- a/src/mesa/vbo/vbo_save_api.c +++ b/src/mesa/vbo/vbo_save_api.c @@ -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; |