mesa: Make single-buffered GLES representation internally consistent
authorGurchetan Singh <gurchetansingh@chromium.org>
Thu, 30 Jun 2016 22:20:34 +0000 (15:20 -0700)
committerChad Versace <chad.versace@intel.com>
Thu, 7 Jul 2016 18:02:35 +0000 (11:02 -0700)
commit2e6d35809bf4ef60af62f9c84d394e97d5bbe2a7
tree87b7d5e0f658370aa9466ed7323b1c77e46885b8
parentf35f8464ecf35de769629d316db620472a92f995
mesa: Make single-buffered GLES representation internally consistent

There are a few places in the code where clearing and reading are done on
incorrect buffers for GLES contexts.  See comments for details.  This
fixes 75 GLES3 dEQP tests on the surfaceless platform with no regressions.

v2: Corrected unclear comment
v3: Make the change in context.c instead of get.c
v4: Removed whitespace

Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Chad Versace <chad.versace@intel.com>
src/mesa/main/buffers.c
src/mesa/main/clear.c
src/mesa/main/context.c