fixed texture atlas on os x
fixed minor error in textuer atlas