Call _mesa_update_stencil() before accessing ctx->Stencil._Enabled
authorOwen W. Taylor <otaylor@fishsoup.net>
Thu, 7 May 2009 02:45:33 +0000 (22:45 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Wed, 13 May 2009 23:02:51 +0000 (19:02 -0400)
commit34eab5dd9c837769f1259e1f900b4528586d23b2
tree2380f20eeb8c374def988d5744887f014aba71b6
parent038f0bf5916df5bae1145d234589e5fd528bb7fa
Call _mesa_update_stencil() before accessing ctx->Stencil._Enabled

ctx->Stencil._Enabled is derived state and not immediately updated
when the stencil parameters are changed; we need to make sure that
it is up-to-date before accessing it.

https://bugs.freedesktop.org/show_bug.cgi?id=21608
src/mesa/drivers/dri/radeon/radeon_common.c