restrict max2d texture size on mac and linux