TINYGL: Minor code cleanup.
TINYGL: Removed duplicated code.