- Fix GLSL 4 compilation errors.
- Workaround for a GLSL driver problem on NVIDIA cards.