draw: don't always run pipeline if clipping

This commit is contained in:
Keith Whitwell 2008-04-17 14:42:05 +01:00
parent 280bcff1fa
commit fe8af14124

View file

@ -74,11 +74,11 @@ draw_pt_arrays(struct draw_context *draw,
} }
if (draw->pt.middle.opt[opt] == NULL) { middle = draw->pt.middle.opt[opt];
opt = PT_PIPELINE | PT_CLIPTEST | PT_SHADE; if (middle == NULL) {
middle = draw->pt.middle.opt[PT_PIPELINE | PT_CLIPTEST | PT_SHADE];
} }
middle = draw->pt.middle.opt[opt];
assert(middle); assert(middle);
/* May create a short-circuited version of this for small primitives: /* May create a short-circuited version of this for small primitives: