mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
Fix calculation of last_count in _tnl_wrap_buffers()
This commit is contained in:
parent
7443c2caa6
commit
af72b4dd8e
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue