Merge pull request #598 from mgerhardy/fixed-implicit-fallthrough

Fixed implicit fallthrough warning
master
Micha Mettke 2018-01-04 13:53:54 -08:00 committed by GitHub
commit b47463d229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8325,7 +8325,7 @@ nk_draw_vertex(void *dst, const struct nk_convert_config *config,
void *address = (void*)((char*)dst + elem_iter->offset);
switch (elem_iter->attribute) {
case NK_VERTEX_ATTRIBUTE_COUNT:
default: NK_ASSERT(0 && "wrong element attribute");
default: NK_ASSERT(0 && "wrong element attribute"); break;
case NK_VERTEX_POSITION: nk_draw_vertex_element(address, &pos.x, 2, elem_iter->format); break;
case NK_VERTEX_TEXCOORD: nk_draw_vertex_element(address, &uv.x, 2, elem_iter->format); break;
case NK_VERTEX_COLOR: nk_draw_vertex_color(address, &color.r, elem_iter->format); break;