Saves GL texture to file in one of formats supported by Imaging.
function SaveGLTextureToFile(const FileName: string; const Texture: GLuint): Boolean;
ImagingOpenGL (at line 139)
Saves all present mipmap levels.