Saves GL texture to stream in one of formats supported by Imaging.
function SaveGLTextureToStream(const Ext: string; Stream: TStream; const Texture: GLuint): Boolean;
ImagingOpenGL (at line 142)
Saves all present mipmap levels.