For OSX
Merge pull request #3260 from fluffyfreak/disable-validate

Disable shader validation due to OSX bug.