fix shader for Mac OS