I have never seen this error ever. Any idea what might cause that?
For the record, I tried explicitly setting my shader version to #version 120
and also a newer version #version 150
Same error. Any help decoding this error would be greatly appreciated.
First rule of compiler errors: just because it lists that line does not mean that it’s the cause of the error. That’s just where the compiler realized that something was wrong. If a line of code looks innocuous, that means the error probably happened somewhere before then.
Even more confusing is that :: is not a token of GLSL. It should never be something the compiler expects. So I’m going to go out on a limb and suggest that you’re probably passing the shader text to OpenGL incorrectly.
[QUOTE=Alfonse Reinheart;1280096]First rule of compiler errors: just because it lists that line does not mean that it’s the cause of the error. That’s just where the compiler realized that something was wrong. If a line of code looks innocuous, that means the error probably happened somewhere before then.
Even more confusing is that :: is not a token of GLSL. It should never be something the compiler expects. So I’m going to go out on a limb and suggest that you’re probably passing the shader text to OpenGL incorrectly.[/QUOTE]
And, it turns out that the problem was that MSVC was putting some garbage chars in the raw text, and hiding it from my view. I looked at the file in another editor and saw this: