I have some very basic openGL shader that used to compile but are not compiling anymore after a Nvidia driver update. Every shader begins with following line: #version 150 core ....
I used to compile those shaders using QGLShaderProgram::addShaderFromSourceFile method
it is mentionned in documentation (http://doc.qt.digia.com/qt-5.1/qtgui/qopenglshaderprogram.html#writing-portable-shaders) that for reusability purpose, following preprocessor directive are added at the beginning of the shader
#define highp
#define mediump
#define lowp
However, since the driver update, I have a compilation error:
error C0204: version directive must be first statement and may not be repeated
and my shader source has become
#define highp
#define mediump
#define lowp
#version 150 core
....
So the issue is pretty simple to understand, however the fix is not so easy. Is it a way to prevent Qt to had the #define? What is the proper solution to deal with this issue (if possible without rewriting all my shader management code)