mesa: Fix GL error generation in _mesa_GetFramebufferAttachmentParameteriv()
authorAnuj Phogat <anuj.phogat@gmail.com>
Wed, 12 Dec 2012 04:08:13 +0000 (20:08 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 15 Jan 2013 23:09:03 +0000 (15:09 -0800)
commit2f2801f876a4c637273bd3ddefb8a5b7a840e604
treee8db9bf55f2073d1fa34e0f28fa3547c5eb7ca60
parentb77243b9c245fd5957aa6d615a3d83d061f51cc1
mesa: Fix GL error generation in _mesa_GetFramebufferAttachmentParameteriv()

This allows query on default framebuffer in
glGetFramebufferAttachmentParameteriv() for gles3. Fixes unexpected GL
errors in gles3 conformance test case:
framebuffer_blit_functionality_multisampled_to_singlesampled_blit

V2: Use _mesa_is_gles3() check to restrict allowed attachment types to
specific APIs.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/fbobject.c