I am sure that I initialized GLEW correctly and set the glewExperimental as true before calling any GLEW functions glewExperimental = GL_TRUE Īfter running the getInfo.exe I found out that the genVertexArrays commmand was MISSING from GLEW I had installed to my PC. Unhandled exception at 0x7469CB49 in OpenGL.exe: 0xC0000005: Access violation executing location 0x00000000. I came across with the following access violation error The problem was that while trying to generate the vertex arrays using glGenVertexArrays(1, &m_vertexArrayObject) I am using windows 7 as platform, and I am using GLEW 1.15 and glm as the openGL libraries with SDL as the interface. The “true” failing function was spotted by careful use of next/step/finish commands of the debugger.I run to a really odd problem while trying to generate vertex arrays with openGL. RESOLVER_COMMON_VOID : the debugger does not explicitely gives this line as failing, rather it says it fails on function ig4icd32!DrvCreateLayerContext of file C:\Windows\system32\ig4icd32.dll, without any stack frame. This is the failing code, in qopenglfunctions.cpp template Here is a picture of the variables at the top frame, just before executing the fatal line that makes everything crash This involves glCreateProgram, glCreateShader and glShaderSource. I tried regular debugging a long time, and after installing the Qt source from the package manager and linking them to be readable for debugging, I noticed that QOpenGLFunctions_2_0 does not have a valid resolution for any function related to OpenGL shaders. But it involved a lot of manipulation, and now my code do not work anymore, event when I build&run certified running snapshots on my version control system. I tried to build GLSL-Debugger (which I failed). I am coding an application using Qt 5 and OpenGL 2.0
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |