summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-04-17 14:42:05 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-04-17 14:42:05 +0100
commitfe8af141246bdfc0e98beec0089acdb92407bcfa (patch)
tree7302d8259036f283e56283a93a1d4aad170a73af /src/gallium/auxiliary/draw
parent280bcff1fa200b790d8712946a4ffbaa47a67433 (diff)
draw: don't always run pipeline if clipping
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt.c b/src/gallium/auxiliary/draw/draw_pt.c
index c0125c906f..60a47f3911 100644
--- a/src/gallium/auxiliary/draw/draw_pt.c
+++ b/src/gallium/auxiliary/draw/draw_pt.c
@@ -74,11 +74,11 @@ draw_pt_arrays(struct draw_context *draw,
}
- if (draw->pt.middle.opt[opt] == NULL) {
- opt = PT_PIPELINE | PT_CLIPTEST | PT_SHADE;
+ middle = draw->pt.middle.opt[opt];
+ if (middle == NULL) {
+ middle = draw->pt.middle.opt[PT_PIPELINE | PT_CLIPTEST | PT_SHADE];
}
- middle = draw->pt.middle.opt[opt];
assert(middle);
/* May create a short-circuited version of this for small primitives: