meta/blit: Restore GL_DEPTH_STENCIL_TEXTURE_MODE state for GL_TEXTURE_RECTANGLE
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 13 Jan 2016 00:08:47 +0000 (16:08 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 25 Jan 2016 18:43:47 +0000 (10:43 -0800)
commit18b0ba340b9229e7afd5e38b5d825fde3a435b63
tree4dc46749b2b2a5548b14d4514b429f80358cd963
parentf7800fadff63cf2df184fc5201ecb10c92fb2908
meta/blit: Restore GL_DEPTH_STENCIL_TEXTURE_MODE state for GL_TEXTURE_RECTANGLE

Commit c246828c added the code to save and restore the stencil
texturing mode.  The restore, however, was erroneously inside the
'target != GL_TEXTURE_RECTANGLE' block.

Fixes piglit test 'arb_stencil_texturing-blit_corrupts_state
GL_TEXTURE_RECTANGLE'.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/common/meta_blit.c