Some fix for basic glsl mode