meta: Drop ctx->API checks.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 27 Feb 2014 01:40:43 +0000 (17:40 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 27 Feb 2014 18:07:40 +0000 (10:07 -0800)
commit085f61bd4eb4e75c705cc82ce8c2ecacff6b8383
treefdb80fe66f8f77a65ad39c6f5497b43e17f4ae11
parentcf719a0204effd787fab6f285d72af9c1c144544
meta: Drop ctx->API checks.

API is always API_OPENGL_COMPAT (since commit 4e4a537ad55f61a25,
"meta: Push into desktop GL mode when doing meta operations."),
so most of these checks do nothing.

We could instead check save->API to only bother setting/restoring
relevant GL state, but I'm not sure saving a few _mesa_set_enable
calls is worth the complexity.  My understanding is the point of
the ctx->API guards was to avoid raising GL errors.

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