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