summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-04-17 14:42:05 +0100
committerKeith Whitwell <[email protected]>2008-04-17 14:42:05 +0100
commitfe8af141246bdfc0e98beec0089acdb92407bcfa (patch)
tree7302d8259036f283e56283a93a1d4aad170a73af /src
parent280bcff1fa200b790d8712946a4ffbaa47a67433 (diff)
draw: don't always run pipeline if clipping
Diffstat (limited to 'src')
-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 c0125c906fe..60a47f3911a 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: