This is really just a cosmetic issue, but it’s a bit annoying.
C preprocessors get it right:
Example: #line 10 #invalid_directive
nVidia drivers report error at line 11, the rest of the world 10
(I think the same applies to DirectX because I’ve seen something similar with DX11;
assuming the preprocessor code is shared)
The fix would be trivial (most likely a one liner), or is there another reason for this odd behavior?
Thanks for the reply.
Indeed, changing to version 330 fixed the problem, I didn’t know about the difference in specs!
I thought GLSL had always followed the C preprocessor way but I was wrong. My apologies.