mesa: Use ctx->ReadBuffer in glReadBuffer back-to-front tests
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 14 Oct 2019 16:58:57 +0000 (09:58 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 15 Oct 2019 22:44:16 +0000 (15:44 -0700)
commitd947276b4acc0b4ebb2745cbde82f7b2ccf11a4a
tree08c8b84290bb708228fe4c31024dc895ed014fa9
parent701e0ac077074e0534fa744ffa48872b8740fbf2
mesa: Use ctx->ReadBuffer in glReadBuffer back-to-front tests

We were looking at ctx->DrawBuffer when asking about the read buffer,
which was good enough for CTS purposes, but definitely not right.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/buffers.c