Fix wrong sampler translation in cg2glsl.