As I'm developing, I like to experiment with forcing certain values in my shader code to something so I can see what's going on.
This would cause the GLSL compiler to optimize out certain uniforms making my game code itself crash, meaning if I change a tiny thing in my shader I have to comment out huge blocks in my C++ code as well, which is a nightmare.
I just want, for the sake of debugging, to disable GLSL compiler optimization. I read in many places that #pragma optimize(off) should do the trick. I place this at the top of my file but my GTX 480 still optimizes out unused uniforms.