I got this piece of code in a fragment shader:
if (color.a < 0.01f) discard;
It runs fine on an older graphic card but can't even compile on my newer (maybe not new, but..) GTX 770. I got the most recent drivers and everything. The versions is correct. OpenGL 4.4. The shader compiles like normal if I remove the discard statement.
I've been searching around and I'm finding nothing about this. Does the discard just not work on certain graphic cards or what?