meta: Restore API at the end of _mesa_meta_end(), not the start.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 27 Feb 2014 06:19:33 +0000 (22:19 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 27 Feb 2014 18:07:40 +0000 (10:07 -0800)
commitcf719a0204effd787fab6f285d72af9c1c144544
tree803da9606ac23840af49eef8a9a75e747e0f0cba
parent612a1d5be1e8e21bceb28ebd77c3b25b72576394
meta: Restore API at the end of _mesa_meta_end(), not the start.

In _mesa_meta_begin(), we switch to API_OPENGL_COMPAT, then munge a lot
of state (including some that doesn't exist in the actual API - like
PolygonStipple in API_OPENGL_CORE).

It seems reasonable that in _mesa_meta_end(), we should restore it,
then switch back to the original API.  This at least makes it symmetric.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/common/meta.c