TINYGL: fixed a few mistakes during the refactoring.