#define GLFW_INCLUDE_NONE // GLFW including OpenGL headers causes ambiguity or multiple definition errors.
#define GLFW_INCLUDE_NONE // GLFW including OpenGL headers causes ambiguity or multiple definition errors.
#include<glbinding/Binding.h> // Initialize with glbinding::Binding::initialize()
#include<glbinding/Binding.h> // Initialize with glbinding::Binding::initialize()
@ -79,6 +81,8 @@ int main(int, char**)
boolerr=glewInit()!=GLEW_OK;
boolerr=glewInit()!=GLEW_OK;
#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD)
#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD)
boolerr=gladLoadGL()==0;
boolerr=gladLoadGL()==0;
#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD2)
boolerr=gladLoadGL((GLADloadfunc)SDL_GL_GetProcAddress)==0;// glad docs recommend using the windowing library loader instead of the (optionally) bundled one.