summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-08-25 15:44:09 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-08-25 15:44:09 +0000
commit4bae9a48ecec6d2428b43989d7266e22ceb1a614 (patch)
tree3892b7db5e954e8c0663cab5a916d93d7b95c52e /src/mesa
parentf38ac5fbacb4d661b94456c8a4c887976a1bf520 (diff)
downloadexternal_mesa3d-4bae9a48ecec6d2428b43989d7266e22ceb1a614.zip
external_mesa3d-4bae9a48ecec6d2428b43989d7266e22ceb1a614.tar.gz
external_mesa3d-4bae9a48ecec6d2428b43989d7266e22ceb1a614.tar.bz2
In _save_End(), set CurrentExecPrimitive = PRIM_OUTSIDE_BEGIN_END if
we're in GL_COMPILE_AND_EXECUTE mode. This fixes bug 7984.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/tnl/t_save_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_save_api.c b/src/mesa/tnl/t_save_api.c
index e9c0b0d..11d2130 100644
--- a/src/mesa/tnl/t_save_api.c
+++ b/src/mesa/tnl/t_save_api.c
@@ -1305,6 +1305,9 @@ static void GLAPIENTRY _save_End( void )
GLint i = tnl->save.prim_count - 1;
ctx->Driver.CurrentSavePrimitive = PRIM_OUTSIDE_BEGIN_END;
+ if (ctx->ExecuteFlag)
+ ctx->Driver.CurrentExecPrimitive = PRIM_OUTSIDE_BEGIN_END;
+
tnl->save.prim[i].mode |= PRIM_END;
tnl->save.prim[i].count = ((tnl->save.initial_counter - tnl->save.counter) -
tnl->save.prim[i].start);