Cg shader fixes for Mesa and Qualcomm drivers #90