Skip to content

Commit

Permalink
fix imgui-usercallback-sapp for imgui 1.91.4
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Oct 22, 2024
1 parent 0502fa1 commit 6699494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sapp/imgui-usercallback-sapp.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,13 +288,13 @@ void frame(void) {
if (igBegin("Dear ImGui", 0, 0)) {
if (igBeginChild_Str("sokol-gfx", (ImVec2){360, 360}, true, ImGuiWindowFlags_None)) {
ImDrawList* dl = igGetWindowDrawList();
ImDrawList_AddCallback(dl, draw_scene_1, 0);
ImDrawList_AddCallback(dl, draw_scene_1, 0, 0);
}
igEndChild();
igSameLine(0, 10);
if (igBeginChild_Str("sokol-gl", (ImVec2){360, 360}, true, ImGuiWindowFlags_None)) {
ImDrawList* dl = igGetWindowDrawList();
ImDrawList_AddCallback(dl, draw_scene_2, 0);
ImDrawList_AddCallback(dl, draw_scene_2, 0, 0);
}
igEndChild();
}
Expand Down

0 comments on commit 6699494

Please sign in to comment.