I've been making my own OpenGL game for fun to learn C++ (coming from Java). I was testing it on another computer I have so I could test it's performance on a weaker system, and I found that there was a shader compiler error.
It seems that on my computer running with Intel Integrated Graphics, the following line causes a syntax error.
float ambientLight = 2f;
The error is just 'f' syntax error, so naturally I removed the f, and it now runs fine on both machines. I'm guessing this is some sort of driver error, but I'm not really sure why there is this discrepancy and whether or not this means I should stop putting fs in my float declarations in glsl all together.