Provide a way to safely call glBegin