Fixed shadow mapping problem on OS X