summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-08-05 17:33:51 -0700
committerVinson Lee <[email protected]>2013-08-05 17:40:19 -0700
commit8e850f2febd7b37485675e58e31221fc71080dd4 (patch)
tree3bb52e6b1b8c81fb7b2e45c61575d11763ec7b50 /src/gallium/auxiliary/draw
parent8294d969e1c2154721eb34dff5848b64f4604308 (diff)
draw: Change slot from unsigned to int.
unfilled_stage::face_slot is of type int. Fixes "Unsigned compared against 0" defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r--src/gallium/auxiliary/draw/draw_pipe_unfilled.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_unfilled.c b/src/gallium/auxiliary/draw/draw_pipe_unfilled.c
index c6ee95c56b1..68bab72265e 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_unfilled.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_unfilled.c
@@ -67,7 +67,7 @@ inject_front_face_info(struct draw_stage *stage,
boolean is_front_face = (
(stage->draw->rasterizer->front_ccw && ccw) ||
(!stage->draw->rasterizer->front_ccw && !ccw));
- unsigned slot = unfilled->face_slot;
+ int slot = unfilled->face_slot;
unsigned i;
/* In case the backend doesn't care about it */