-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Error imgui GLSL 4.40 #2421
Comments
You have probably not initialized the GL functions pointers of the GL function loaders that is used by imgui_impl_opengl3.cpp (by default we use gl3w) |
…L3_Init() to detect uninitialized GL function loaders early, and help users understand what they are missing. (#2421)
I made a few changes to imgui_impl_opengl3.cpp to help users understand what they have made this mistake of not initializing the GL function loader. Please refer to the examples/ main.cpp files for a working application. |
Hi! have a similar problem with gladLoadGL() wich now i sopose it is called gladLoadGLLoader() as I can see in glad.c. My problem is a access violation with the variable "last_active_texture". the thing is that after adding gladloader in my code, The problem persist |
@Jaumeavinyo What's your version and the most recent date at the top of your imgui_impl_opengl3.cpp ? |
I downloaded the 1.81 imGui release from your repo. The most recent date in the change log of the file imgui_impl_opengl3.cpp is: the glsl version string is: "#version 130" and the value of the gl_loader string is unknown because I don't really think I understand where does the inside function of the loader get the string from |
pd: thanks for the hyper fast attention to my post! |
The code in
You want to step at the end of this block and check the exact version for |
Here you have it. Thanks // Debugging construct to make it easily visible in the IDE and debugger which GL loader has been selected. |
Im using: |
Your first answer suggest you are misunderstanding my question. If you didn't properly set the compile-time option |
You didn't gave me the GlVersion version, only the GLSLversion one. |
where do I find this=? |
|
In your version of the code there's a variable Also your first screen has some code saying |
Okay, you helped a lot, don'tworry I just needed some clues to find where was the problem, pd, my gl version is 320 pd, glPushDebugGroup() is not something I added to the code. I will review what happened thanks |
Version: 1.69
Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_opengl3.cpp + imgui_impl_sdl.cpp
Compiler: Visual Studio, C++ 11
Operating System: windows 10
My Issue/Question:
I Try to add GUI on my animation engine program. But when adding ImGui for opengl3 sdl2, I always have error at glGetIntegerv(GL_ARRAY_BUFFER_BINDING, &last_array_buffer);, and the error says, Access violation executing location 0x0000000000000000. Before adding imgui, my program works fine. I search some solution on the internet, but none of those are works.
Screenshots/Video
Standalone, minimal, complete and verifiable example:
The text was updated successfully, but these errors were encountered: