summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-15 10:30:38 -0600
committerBrian <[email protected]>2007-10-15 10:30:38 -0600
commit3eeef8aabe399a404d5c86dcc23066d9b5453a7f (patch)
tree247e1b6c349f9e3108f6114fd736f3b9aa29ee10 /src/mesa/pipe
parent66ea4b7c7c6c61cfacb3640cfc264cae575062cd (diff)
Change 'drawing' field to boolean.
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r--src/mesa/pipe/draw/draw_prim.c4
-rw-r--r--src/mesa/pipe/draw/draw_private.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/pipe/draw/draw_prim.c b/src/mesa/pipe/draw/draw_prim.c
index 698557d6bda..cf8943b40d4 100644
--- a/src/mesa/pipe/draw/draw_prim.c
+++ b/src/mesa/pipe/draw/draw_prim.c
@@ -119,7 +119,7 @@ void draw_do_flush( struct draw_context *draw,
draw->drawing)
{
draw->pipeline.first->end( draw->pipeline.first );
- draw->drawing = 0;
+ draw->drawing = FALSE;
draw->prim = ~0;
draw->pipeline.first = draw->pipeline.validate;
}
@@ -400,7 +400,7 @@ draw_arrays(struct draw_context *draw, unsigned prim,
unsigned start, unsigned count)
{
if (!draw->drawing) {
- draw->drawing = 1;
+ draw->drawing = TRUE;
/* tell drawing pipeline we're beginning drawing */
draw->pipeline.first->begin( draw->pipeline.first );
diff --git a/src/mesa/pipe/draw/draw_private.h b/src/mesa/pipe/draw/draw_private.h
index 79b2176c59c..6aa4cd44a0b 100644
--- a/src/mesa/pipe/draw/draw_private.h
+++ b/src/mesa/pipe/draw/draw_private.h
@@ -181,7 +181,7 @@ struct draw_context
uint attrib_front0, attrib_back0;
uint attrib_front1, attrib_back1;
- unsigned drawing;
+ boolean drawing; /**< do we presently have something queued for drawing? */
unsigned prim; /**< current prim type: PIPE_PRIM_x */
unsigned reduced_prim;