Skip to content

Commit

Permalink
sokol_gfx_imgui.h: fix Dear ImGui conflicting ID warning (fixes #1144)
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Nov 7, 2024
1 parent eed7517 commit 3a3c4be
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 @@ -3434,6 +3434,7 @@ _SOKOL_PRIVATE void _sgimgui_draw_sampler_panel(sgimgui_t* ctx, sg_sampler smp)

_SOKOL_PRIVATE void _sgimgui_draw_shader_func(const char* title, const sg_shader_function* func) {
SOKOL_ASSERT(func);
igPushID_Str(title);
igText("%s", title);
if (func->entry) {
igText(" entry: %s", func->entry);
Expand All @@ -3452,6 +3453,7 @@ _SOKOL_PRIVATE void _sgimgui_draw_shader_func(const char* title, const sg_shader
igTreePop();
}
}
igPopID();
}

_SOKOL_PRIVATE void _sgimgui_draw_shader_panel(sgimgui_t* ctx, sg_shader shd) {
Expand Down

0 comments on commit 3a3c4be

Please sign in to comment.