Fixed debug rendering for OS X