main/fboject: return if it is color_attachment on get_attachment
authorAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 12 Jan 2017 18:03:00 +0000 (16:03 -0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 13 Jan 2017 10:52:07 +0000 (08:52 -0200)
commitc6eb3aeba530fe82087c1c3c06ded23cb79bc199
tree258f3a2f9c517a53d5d6ae7480f40c7ba9b2b7de
parent963311b71fd9900351a4a9dd1cd5f5db391f7e1b
main/fboject: return if it is color_attachment on get_attachment

Some callers would need that info to know if they should raise
INVALID_ENUM or INVALID_OPERATION. An alternative would be the caller
to check if the attachment is a GL_COLOR_ATTACHMENTm, but that seems
redundant as get_attachment is already doing that.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/main/fbobject.c