From 18d69ff93320b4f851314cfa3175b01ed6a47ea9 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Wed, 21 Jul 2021 18:27:51 -0500 Subject: [PATCH] Fixed missing dependency on imgui/opengl3 --- src/moon/libs/imgui/imgui_impl_opengl3.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/moon/libs/imgui/imgui_impl_opengl3.cpp b/src/moon/libs/imgui/imgui_impl_opengl3.cpp index d3c86ef7..51a41d15 100644 --- a/src/moon/libs/imgui/imgui_impl_opengl3.cpp +++ b/src/moon/libs/imgui/imgui_impl_opengl3.cpp @@ -90,6 +90,17 @@ #include +#ifdef __MINGW32__ +# define FOR_WINDOWS 1 +#else +# define FOR_WINDOWS 0 +#endif + +#if FOR_WINDOWS || defined(OSX_BUILD) +# define GLEW_STATIC +# include +#endif + #define GL_GLEXT_PROTOTYPES 1 #ifdef USE_GLES # include @@ -97,6 +108,7 @@ # include #endif + // Desktop GL 3.2+ has glDrawElementsBaseVertex() which GL ES and WebGL don't have. #if !defined(IMGUI_IMPL_OPENGL_ES2) && !defined(IMGUI_IMPL_OPENGL_ES3) && defined(GL_VERSION_3_2) #define IMGUI_IMPL_OPENGL_MAY_HAVE_VTX_OFFSET