Avoid asserting in glReadPixels for unsupported formats, return GL_INVALID_ENUM instead