Fixed some shader compiler bugs for nvidia