glamor: Handle GL_OUT_OF_MEMORY when allocating texture images.
The spec allows general undefined behavior when GL_OOM is thrown. But if the driver happens to throw the error at this point, it probably means the pixmap was just too big, so we should delete that texture and have this pixmap fall back to software. Signed-off-by: Eric Anholt <firstname.lastname@example.org> Reviewed-by: Michel Dänzer <email@example.com>
Showing with 28 additions and 0 deletions