shader bug fixes for mac