mesa: fix error handling in DrawBuffers