Corrected var type, more informative logging of Cg Shader errors