Browse Source

fix: mismatch function with cimgui

n67094 5 months ago
parent
commit
10e0bde19d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util/sokol_imgui.h

+ 1 - 1
util/sokol_imgui.h

@@ -2380,7 +2380,7 @@ SOKOL_API_IMPL void simgui_setup(const simgui_desc_t* desc) {
         #if defined(__cplusplus)
             ImGuiPlatformIO* pio = &ImGui::GetPlatformIO();
         #else
-            ImGuiPlatformIO* pio = _SIMGUI_CFUNC(GetPlatformIO)();
+            ImGuiPlatformIO* pio = _SIMGUI_CFUNC(GetPlatformIO_Nil)();
         #endif
         pio->Platform_SetClipboardTextFn = _simgui_set_clipboard;
         pio->Platform_GetClipboardTextFn = _simgui_get_clipboard;