mesa: queries of non-existent FBO attachments should return INVALID_OPERATION
authorMarek Olšák <maraeo@gmail.com>
Tue, 31 May 2011 18:36:07 +0000 (20:36 +0200)
committerMarek Olšák <maraeo@gmail.com>
Wed, 1 Jun 2011 14:07:58 +0000 (16:07 +0200)
commitb9e9df78a03edb35472c2e231aef4747e09db792
tree17648ace2e1bbc8391c042df0141361aaab8414e
parentd69dc2e20346397f4734a0760554a51fb4fbb3c0
mesa: queries of non-existent FBO attachments should return INVALID_OPERATION

OpenGL 4.0 Compatibility, page 449:

If the value of FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is NONE, no
framebuffer is bound to target. In this case querying pname FRAMEBUFFER_-
ATTACHMENT_OBJECT_NAME will return zero, and all other queries will generate
an INVALID_OPERATION error.

Reviewed-by: Chad Versace <chad@chad-versace.us>
src/mesa/main/fbobject.c