diff options
author | José Fonseca <[email protected]> | 2007-11-07 12:08:19 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2007-11-07 13:41:00 +0000 |
commit | c28fdf309607ec2994ef9a1109931a8389854300 (patch) | |
tree | f63cd5c6915779f8bca6b1aa30b01123be5b5822 /src/mesa/pipe/draw/draw_vertex_cache.c | |
parent | 3922baede207c64ce07ec2ac19ffab04f7035483 (diff) |
Use a consistent number to identify undefined vertices.
Diffstat (limited to 'src/mesa/pipe/draw/draw_vertex_cache.c')
-rw-r--r-- | src/mesa/pipe/draw/draw_vertex_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/draw/draw_vertex_cache.c b/src/mesa/pipe/draw/draw_vertex_cache.c index 511f371ac82..6689907ddfe 100644 --- a/src/mesa/pipe/draw/draw_vertex_cache.c +++ b/src/mesa/pipe/draw/draw_vertex_cache.c @@ -88,7 +88,7 @@ static struct vertex_header *get_vertex( struct draw_context *draw, draw->vcache.vertex[slot]->clipmask = 0; draw->vcache.vertex[slot]->edgeflag = 1; /*XXX use user's edge flag! */ draw->vcache.vertex[slot]->pad = 0; - draw->vcache.vertex[slot]->vertex_id = ~0; + draw->vcache.vertex[slot]->vertex_id = UNDEFINED_VERTEX_ID; } @@ -130,7 +130,7 @@ void draw_vertex_cache_reset_vertex_ids( struct draw_context *draw ) unsigned i; for (i = 0; i < Elements(draw->vcache.vertex); i++) - draw->vcache.vertex[i]->vertex_id = ~0; + draw->vcache.vertex[i]->vertex_id = UNDEFINED_VERTEX_ID; } |