Correct CGerror type
Log a few details on shader compilation errors
Merge pull request #1032 from dethbunny/CgShader

Corrected var type, more informative logging of Cg Shader errors