Use shaders for texture format conversion
The idea is to always upload textures in the format we have to avoid all client-side conversion. Then we run a shader that does the conversion to the final texture. Except in cases where we know glTexImage2D can do the right conversion for us.
Edited by Matthias Clasen