-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
glDrawElementsBaseVertex is not available in GL 3.1 #2852
Comments
You are correct. We would need a PR that :
|
@dpilawa Do you feel like attempting to make this PR? |
@ocornut Yes, will do. |
@ocornut I will need to find another solution and remove reference to If you have a quick idea, drop me a line, please. |
Which GL loader are you using? |
@ocornut I am using GLAD with compatibility profile. |
OK so I guess we could
|
Right, let's use these which GLAD emits: |
Fixed via #2866 |
Version/Branch of Dear ImGui:
Version: 1.72b
Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp
Compiler: Clang 8.0.0
Operating System: win10
My Issue/Question:
This piece in
imgui_impl_opengl3.cpp
is not sufficient to decide on the use of glDrawElementsBaseVertex which is available from GL 3.2 onwards (and not in GL 3.1).// Desktop GL has glDrawElementsBaseVertex() which GL ES and WebGL don't have. #if defined(IMGUI_IMPL_OPENGL_ES2) || defined(IMGUI_IMPL_OPENGL_ES3) #define IMGUI_IMPL_OPENGL_HAS_DRAW_WITH_BASE_VERTEX 0 #else #define IMGUI_IMPL_OPENGL_HAS_DRAW_WITH_BASE_VERTEX 1 #endif
The text was updated successfully, but these errors were encountered: