mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
minor improvement to get_vertex() in-use flag setting
This commit is contained in:
parent
38091ef42a
commit
c998ce1df0
1 changed files with 2 additions and 4 deletions
|
|
@ -421,6 +421,8 @@ static struct vertex_header *get_vertex( struct draw_context *draw,
|
|||
*/
|
||||
if (draw->vcache.referenced & (1 << slot))
|
||||
slot = VCACHE_SIZE + draw->vcache.overflow++;
|
||||
else
|
||||
draw->vcache.referenced |= (1 << slot); /* slot now in use */
|
||||
|
||||
draw->vcache.idx[slot] = i;
|
||||
|
||||
|
|
@ -436,10 +438,6 @@ static struct vertex_header *get_vertex( struct draw_context *draw,
|
|||
draw->vcache.vertex[slot]->edgeflag = 1; /*XXX use user's edge flag! */
|
||||
}
|
||||
|
||||
/* Mark slot as in-use:
|
||||
*/
|
||||
if (slot < VCACHE_SIZE)
|
||||
draw->vcache.referenced |= (1 << slot);
|
||||
return draw->vcache.vertex[slot];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue