Fixed missing dependency on imgui/opengl3

This commit is contained in:
KiritoDv 2021-07-21 18:27:51 -05:00
parent 63b6992a9f
commit 18d69ff933
1 changed files with 12 additions and 0 deletions

View File

@ -90,6 +90,17 @@
#include <SDL2/SDL.h>
#ifdef __MINGW32__
# define FOR_WINDOWS 1
#else
# define FOR_WINDOWS 0
#endif
#if FOR_WINDOWS || defined(OSX_BUILD)
# define GLEW_STATIC
# include <GL/glew.h>
#endif
#define GL_GLEXT_PROTOTYPES 1
#ifdef USE_GLES
# include <SDL2/SDL_opengles2.h>
@ -97,6 +108,7 @@
# include <SDL2/SDL_opengl.h>
#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