Application fails with "Compiling Vertex shader failed"

2.4k Views Asked by At

I'm using Qt 5.2.1 and have compiled it for OpenGL (using build-option "-opengl desktop"). Now when I try to use a component that should make use of OpenGL, it fails with a

qFatal("Compiling Vertex shader failed")

All other Qt-applications that do not use OGL still work fine. The test-application mentioned above is just a ready-to use demo, no self-written crap.

Any idea what the reason could be or what I could check to find out what's wrong?

Thanks!

1

There are 1 best solutions below

5
On

Windows only supports DirectX and OpenGl 1.1 by default. You'll get this error, among others, if you don't have proper OpenGL drivers installed.

Try installing drivers from your graphics card's vendor web site (not the ones installed by Windows automatically), which should include a proper opengl32.dll.

Using Qt with ANGLE would also solve it, if this is your problem.