After updating my graphics driver and trying to run this example from John Chapman's blog I got this error
Vertex shader failed to compile with the following errors:
ERROR: 0:8: error(#105) #version must occur before any other program statement
The way that the version is defined is by including a file containing this code
#ifndef DEF_GLSL_
#define DEF_GLSL_
#version 420
...
So inside all other shader files one can see that the first line is as follows
#include "common/def.glsl"
...
I remember this working perfectly a few months ago. So what exactly has changed and the #include
command is no longer valid?
#
". Could you show a minimal example of code that you know gives this error message? $\endgroup$