meta/copy_image: Stash off the scissor
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 24 Jul 2015 00:26:56 +0000 (17:26 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 29 Jul 2015 00:50:10 +0000 (17:50 -0700)
commit736c6f3cfc2c69e3c29268d4ebb7110dd36ac97f
tree585dfe6eb433e103a7a201da2396efb2862a1e38
parentbf4019a1c89755af94218055e86544f7823dc4ac
meta/copy_image: Stash off the scissor

The meta CopyImageSubData path uses BlitFramebuffers to do the actual copy.
The only thing that can affect BlitFramebuffers other than the currently
bound framebuffers is the scissor so we need to save that off and reset it.
If we don't do this, applications that use a scissor together with
CopyImageSubData will get accidentally scissored copies.

Tested-by: Markus Wick <markus at selfnet.de>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/common/meta_copy_image.c