mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 04:50:35 +01:00
draw: don't always run pipeline if clipping
This commit is contained in:
parent
280bcff1fa
commit
fe8af14124
1 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue