Saves GL texture to memory in one of formats supported by Imaging.
function SaveGLTextureToMemory(const Ext: string; Data: Pointer; var Size: LongInt; const Texture: GLuint): Boolean;
ImagingOpenGL (at line 145)
Saves all present mipmap levels.