TINYGL: Added assert to ensure correct texture format.
TINYGL: removed redundant commented code.