mesa: GLES2 should return different error enums for invalid fbo queries
authorMarek Olšák <maraeo@gmail.com>
Tue, 19 Jul 2011 01:05:07 +0000 (03:05 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 21 Jul 2011 12:16:43 +0000 (14:16 +0200)
commit000896c0bb99f356e52854608a29476d3ade387c
treec9370f94e32302da06a21ec18f2ab3a5804bf44e
parentea316c5e060cbd92b34e0d794c0707d4ca79e6e8
mesa: GLES2 should return different error enums for invalid fbo queries

ES 2.0.25 page 127 says:

  If the value of FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is NONE, then
  querying any other pname will generate INVALID_ENUM.

See also:
b9e9df78a03edb35472c2e231aef4747e09db792

NOTE: This is a candidate for the 7.10 and 7.11 branches.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/fbobject.c