Fixed shader issues on MAC