Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

QOpenGLFunctions_2_0 suddenly fails to load functions related to OpenGL's Shaders

$
0
0
I am coding an application using Qt 5 and OpenGL 2.0 I tried to build GLSL-Debugger (which I failed). 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 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. This involves glCreateProgram, glCreateShader and glShaderSource. Here is a picture of the variables at the top frame, just before executing the fatal line that makes everything crash This is the failing code, in qopenglfunctions.cpp : template <typename Base, typename FuncType, int Policy> template <typename P1> void Resolver<Base, FuncType, Policy, void>::operator()(P1 p1) {     RESOLVER_COMMON_VOID       (funcs->*funcPointerName)(p1); } Note : 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. The “true” failing function was spotted by careful use of next/step/finish commands of the debugger.

Viewing all articles
Browse latest Browse all 2113

Trending Articles