Removed generateMipmap' that is now in OpenGL.