mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 13:30:29 +00:00
pkg/dcimgui: only add the OpenGL3 shutdown helper if backend enabled
This commit is contained in:
@@ -37,6 +37,7 @@ CIMGUI_API void ImGuiStyle_ImGuiStyle(cimgui::ImGuiStyle* self)
|
||||
// next Init to reload the GL function pointers via imgl3wInit().
|
||||
#ifndef IMGUI_DISABLE
|
||||
#if __has_include("backends/imgui_impl_opengl3.h")
|
||||
#ifdef ZIGPKG_IMGUI_ENABLE_OPENGL3
|
||||
#include "backends/imgui_impl_opengl3.h"
|
||||
#include "backends/imgui_impl_opengl3_loader.h"
|
||||
|
||||
@@ -45,7 +46,8 @@ CIMGUI_API void ImGui_ImplOpenGL3_ShutdownWithLoaderCleanup()
|
||||
::ImGui_ImplOpenGL3_Shutdown();
|
||||
memset(&imgl3wProcs, 0, sizeof(imgl3wProcs));
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#endif // ZIGPKG_IMGUI_ENABLE_OPENGL3
|
||||
#endif // __has_include("backends/imgui_impl_opengl3.h")
|
||||
#endif // IMGUI_DISABLE
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user