TINYGL: Fixed a mistake in while -> loop refactoring.