Viewport was not taken into account when drawing