TINYGL: Fixed support to RGB textures.

This PR contains a simple fix to tinyGL: it is now possible to create empty RGB textures.
This also fixes an issue with myst3 crashing when subtitles were enabled.