projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f38ac5f
)
In _save_End(), set CurrentExecPrimitive = PRIM_OUTSIDE_BEGIN_END if
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 25 Aug 2006 15:44:09 +0000
(15:44 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 25 Aug 2006 15:44:09 +0000
(15:44 +0000)
we're in GL_COMPILE_AND_EXECUTE mode.
This fixes bug 7984.
src/mesa/tnl/t_save_api.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_save_api.c
b/src/mesa/tnl/t_save_api.c
index
e9c0b0d
..
11d2130
100644
(file)
--- 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);