Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include custom OpenGL loader header from define. #4649

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion backends/imgui_impl_opengl3.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@
#else
#include <GLES3/gl3.h> // Use GL ES 3
#endif
#elif !defined(IMGUI_IMPL_OPENGL_LOADER_CUSTOM)
#elif defined(IMGUI_IMPL_OPENGL_LOADER_CUSTOM)
#if defined(IMGUI_IMPL_OPENGL_LOADER_CUSTOM_INCLUDE)
#include IMGUI_IMPL_OPENGL_LOADER_CUSTOM_INCLUDE
#endif
#else
// Modern desktop OpenGL doesn't have a standard portable header file to load OpenGL function pointers.
// Helper libraries are often used for this purpose! Here we are using our own minimal custom loader based on gl3w.
// In the rest of your app/engine, you can use another loader of your choice (gl3w, glew, glad, glbinding, glext, glLoadGen, etc.).
Expand Down