mesa: fix GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME query
authorBrian Paul <brianp@vmware.com>
Fri, 3 Dec 2010 15:23:31 +0000 (08:23 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 3 Dec 2010 15:24:51 +0000 (08:24 -0700)
commit20cf1851d82d6135b92c20323266156eb6ad5ffe
tree2f665b8a800be45171f92dbd671c9cc004a85c85
parent14746b1d4fc7ae30b557dacc819b81756df2f72f
mesa: fix GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME query

Return 0 instead of generating an error.

See http://bugs.freedesktop.org/show_bug.cgi?id=30993

Note that piglit fbo-getframebufferattachmentparameter-01 still does
not pass.  But Mesa behaves the same as the NVIDIA driver in this case.
Perhaps the test is incorrect.

NOTE: This is a candidate for the 7.9 branch.
src/mesa/main/fbobject.c