some fixes on mac and gl renderer