Fix compatibility with desktop GL in cg2xml.