Fixed shader compiler bugs