mesa: Accept GL_BACK in get_fb0_attachment with ARB_ES3_1_compatibility.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 26 Oct 2017 18:44:09 +0000 (11:44 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 27 Oct 2017 17:19:07 +0000 (10:19 -0700)
commit4f538c3f99b25dc96cd20314ce7785fd4d333be1
treef5c9dff59cca0002f77b8f353c4827d64852c00f
parent7a718667f354935dc8470380f37ccea1477632d0
mesa: Accept GL_BACK in get_fb0_attachment with ARB_ES3_1_compatibility.

According to the ARB_ES3_1_compatibility specification,
glGetFramebufferAttachmentParameteriv is supposed to accept BACK,
and it behaves exactly like BACK_LEFT.

Fixes a GL error in GFXBench 5 Aztec Ruins.

Cc: "17.3 17.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/main/fbobject.c