projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7443c2c
)
Fix calculation of last_count in _tnl_wrap_buffers()
author
Keith Whitwell
<keith@tungstengraphics.com>
Tue, 18 Jan 2005 08:41:55 +0000
(08:41 +0000)
committer
Keith Whitwell
<keith@tungstengraphics.com>
Tue, 18 Jan 2005 08:41:55 +0000
(08:41 +0000)
src/mesa/tnl/t_vtx_api.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_vtx_api.c
b/src/mesa/tnl/t_vtx_api.c
index a6b8cc301308f5c633a9ed2ba06e868291df9b34..d92e03e58d9ceef424c2b8b0e2547bbee2fccd92 100644
(file)
--- a/
src/mesa/tnl/t_vtx_api.c
+++ b/
src/mesa/tnl/t_vtx_api.c
@@
-64,7
+64,7
@@
static void _tnl_wrap_buffers( GLcontext *ctx )
}
else {
GLuint last_prim = tnl->vtx.prim[tnl->vtx.prim_count-1].mode;
- GLuint last_count
= tnl->vtx.prim[tnl->vtx.prim_count-1].count
;
+ GLuint last_count;
if (ctx->Driver.CurrentExecPrimitive != GL_POLYGON+1) {
GLint i = tnl->vtx.prim_count - 1;
@@
-74,6
+74,8
@@
static void _tnl_wrap_buffers( GLcontext *ctx )
tnl->vtx.prim[i].start);
}
+ last_count = tnl->vtx.prim[tnl->vtx.prim_count-1].count;
+
/* Execute the buffer and save copied vertices.
*/
if (tnl->vtx.counter != tnl->vtx.initial_counter)