imgui: Error imgui GLSL 4.40
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:
bool ImGui_ImplOpenGL3_CreateDeviceObjects()
{
// Backup GL state
GLint last_texture, last_array_buffer;
glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture);
glGetIntegerv(GL_ARRAY_BUFFER_BINDING, &last_array_buffer); <-- Error at this line
#ifndef IMGUI_IMPL_OPENGL_ES2
GLint last_vertex_array;
glGetIntegerv(GL_VERTEX_ARRAY_BINDING, &last_vertex_array);
#endif
}
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (7 by maintainers)
here you have it, debuuged and confirmed
pd: thanks for the hyper fast attention to my post!