meta: Fix restoring of fixed function texture enables.
authorEric Anholt <eric@anholt.net>
Thu, 10 Nov 2011 20:44:47 +0000 (12:44 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 14 Nov 2011 17:26:53 +0000 (09:26 -0800)
commit196c6d4adfd6cee13782dc558b855c27a15e567c
treea7e658e1da98fe56d11c7068edddbcdd0c91ed32
parent95a826bed385efe6f53d3e1c0305b05ef355d786
meta: Fix restoring of fixed function texture enables.

If they were disabled on entry, and we enabled one (like for
BlitFramebuffer), we wouldn't disable it on the way out.  Retain the
attempted optimization here (don't keep calling to set each bit for
changes that won't matter) by just setting the bits directly with
appropriate flushing.

Fixes misrendering on the second draw of piglit fbo-blit.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/common/meta.c