Skip to content

Commit

Permalink
fix dbgui.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Feb 11, 2024
1 parent a426934 commit e0a0f38
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libs/dbgui/dbgui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@

extern "C" {

static sg_imgui_t sg_imgui;
static sgimgui_t sgimgui;

void __dbgui_setup(int sample_count) {
// setup debug inspection header(s)
const sg_imgui_desc_t desc = { };
sg_imgui_init(&sg_imgui, &desc);
const sgimgui_desc_t desc = { };
sgimgui_init(&sgimgui, &desc);

// setup the sokol-imgui utility header
simgui_desc_t simgui_desc = { };
Expand All @@ -30,17 +30,17 @@ void __dbgui_setup(int sample_count) {
}

void __dbgui_shutdown(void) {
sg_imgui_discard(&sg_imgui);
sgimgui_discard(&sgimgui);
simgui_shutdown();
}

void __dbgui_draw(void) {
simgui_new_frame({ sapp_width(), sapp_height(), sapp_frame_duration(), sapp_dpi_scale() });
if (ImGui::BeginMainMenuBar()) {
sg_imgui_draw_menu(&sg_imgui, "sokol-gfx");
sgimgui_draw_menu(&sgimgui, "sokol-gfx");
ImGui::EndMainMenuBar();
}
sg_imgui_draw(&sg_imgui);
sgimgui_draw(&sgimgui);
simgui_render();
}

Expand Down

0 comments on commit e0a0f38

Please sign in to comment.