mesa: handle MapTextureImage() failures in glGetTexImage code