fixed mac 2d rendering