mirror of https://github.com/sm64pc/sm64pc.git
Fixed missing dependency on imgui/opengl3
This commit is contained in:
parent
63b6992a9f
commit
18d69ff933
|
@ -90,6 +90,17 @@
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#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
|
#define GL_GLEXT_PROTOTYPES 1
|
||||||
#ifdef USE_GLES
|
#ifdef USE_GLES
|
||||||
# include <SDL2/SDL_opengles2.h>
|
# include <SDL2/SDL_opengles2.h>
|
||||||
|
@ -97,6 +108,7 @@
|
||||||
# include <SDL2/SDL_opengl.h>
|
# include <SDL2/SDL_opengl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// Desktop GL 3.2+ has glDrawElementsBaseVertex() which GL ES and WebGL don't have.
|
// 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)
|
#if !defined(IMGUI_IMPL_OPENGL_ES2) && !defined(IMGUI_IMPL_OPENGL_ES3) && defined(GL_VERSION_3_2)
|
||||||
#define IMGUI_IMPL_OPENGL_MAY_HAVE_VTX_OFFSET
|
#define IMGUI_IMPL_OPENGL_MAY_HAVE_VTX_OFFSET
|
||||||
|
|
Loading…
Reference in New Issue