From 6699494ed7b2ee09b50c1d7b62b1ecc4caf12dbe Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Tue, 22 Oct 2024 18:58:26 +0200 Subject: [PATCH] fix imgui-usercallback-sapp for imgui 1.91.4 --- sapp/imgui-usercallback-sapp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sapp/imgui-usercallback-sapp.c b/sapp/imgui-usercallback-sapp.c index fcfd5790..6d75cfe0 100644 --- a/sapp/imgui-usercallback-sapp.c +++ b/sapp/imgui-usercallback-sapp.c @@ -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(); }