Shader fix for nVIDIA

Thanks to ShendoXT for testing it.