A wing stops producing lift when the airflow becomes detached from the airfoil. This is known as stall and can be seen clearly in a wind tunnel experiment.