-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
how imgui_impl_OpenGL3.cpp can introduce gl3w.h #3860
Comments
In version 1.73, it's okay ! I think it's something unchecked with header loader. |
I have the same issue!! Someone has to fix it please... |
If you read the any of the comments nearby that OpenGL loader mess you would find that:
|
I have solve this problem by change the definition order bwteen imgui/backends/imgui_impl_opengl3.h Lines 68 to 85 in 4537d98
|
here is my solution, please check it . Glad if can help you. |
Version/Branch of Dear ImGui:
Version: 1.81
Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_OpenGL3.cpp + imgui_impl_glfw.cpp _
Compiler: bazel VScode
Operating System: Ubuntu 18.04.5 LTS
My Issue/Question:
Someting like #3507, when I try to use
imgui_impl_OpenGL3.cpp
to introducegl3w.h
andgl3w.c
,imgui_impl_OpenGL3.cpp
always link toGL/glew
, how to fix it ?Code
here is code I package imgui
here is the structure of my code, which imgui belongs
. ├── BUILD ├── CMakeLists.txt ├── GL │ ├── CMakeLists.txt │ ├── gl3w.c │ ├── gl3w.h │ └── glcorearb.h ├── imconfig.h ├── imgui.cpp ├── imgui_demo.cpp ├── imgui_draw.cpp ├── imgui.h ├── imgui_impl_glfw.cpp ├── imgui_impl_glfw.h ├── imgui_impl_opengl3.cpp ├── imgui_impl_opengl3.h ├── imgui_internal.h ├── imgui_stdlib.cpp ├── imgui_stdlib.h ├── imgui_tables.cpp ├── imgui_widgets.cpp ├── imstb_rectpack.h ├── imstb_textedit.h └── imstb_truetype.h
error report
The text was updated successfully, but these errors were encountered: