glGenerateMipmap came with framebuffer objects so get one and the other should be supported even pre-GL3.0
The texture dumping code was still using the face that was stored in the result.