Skip to content

Commit

Permalink
sokol_gfx_imgui.h: fix switch-case fallthrough bug (thanks gcc for th…
Browse files Browse the repository at this point in the history
…e warning)
  • Loading branch information
floooh committed Jun 24, 2023
1 parent 2f9a2dc commit 99157e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/sokol_gfx_imgui.h
Original file line number Diff line number Diff line change
Expand Up @@ -1817,6 +1817,7 @@ _SOKOL_PRIVATE sg_imgui_str_t _sg_imgui_capture_item_string(sg_imgui_t* ctx, int
sg_imgui_str_t res_id = _sg_imgui_sampler_id_string(ctx, item->args.destroy_sampler.sampler);
_sg_imgui_snprintf(&str, "%d: sg_destroy_sampler(smp=%s)", index, res_id.buf);
}
break;

case SG_IMGUI_CMD_DESTROY_SHADER:
{
Expand Down Expand Up @@ -1953,6 +1954,7 @@ _SOKOL_PRIVATE sg_imgui_str_t _sg_imgui_capture_item_string(sg_imgui_t* ctx, int
sg_imgui_str_t res_id = _sg_imgui_sampler_id_string(ctx, item->args.alloc_sampler.result);
_sg_imgui_snprintf(&str, "%d: sg_alloc_sampler() => %s", index, res_id.buf);
}
break;

case SG_IMGUI_CMD_ALLOC_SHADER:
{
Expand Down

0 comments on commit 99157e2

Please sign in to comment.