瀏覽代碼

fix: mismatch function with cimgui

n67094 5 月之前
父節點
當前提交
10e0bde19d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;