diff options
author | Keith Whitwell <[email protected]> | 2008-04-17 14:42:05 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-04-17 14:42:05 +0100 |
commit | fe8af141246bdfc0e98beec0089acdb92407bcfa (patch) | |
tree | 7302d8259036f283e56283a93a1d4aad170a73af /src/gallium/auxiliary/draw | |
parent | 280bcff1fa200b790d8712946a4ffbaa47a67433 (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.c | 6 |
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: |