diff options
| author | Roland Scheidegger <rscheidegger@gmx.ch> | 2006-09-22 13:34:24 +0000 |
|---|---|---|
| committer | Roland Scheidegger <rscheidegger@gmx.ch> | 2006-09-22 13:34:24 +0000 |
| commit | 8a0fb128c30f7f8defcdd7f98b1ded47c83355f9 (patch) | |
| tree | 87a09bc2cae634da7943a5150a8dc2108053694f | |
| parent | 7e9799ac3d7f3b1b90f098420d413be95916c541 (diff) | |
don't skip user clip plane clipping when the current vertex program is position invariant.
| -rw-r--r-- | src/mesa/tnl/t_vb_arbprogram.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vb_arbprogram.c b/src/mesa/tnl/t_vb_arbprogram.c index 0ff26df713..71fb45dd95 100644 --- a/src/mesa/tnl/t_vb_arbprogram.c +++ b/src/mesa/tnl/t_vb_arbprogram.c @@ -1182,7 +1182,8 @@ do_ndc_cliptest(GLcontext *ctx, struct arb_vp_machine *m) /* Test userclip planes. This contributes to VB->ClipMask. */ - if (ctx->Transform.ClipPlanesEnabled && !ctx->VertexProgram._Enabled) { + if (ctx->Transform.ClipPlanesEnabled && (!ctx->VertexProgram._Enabled || + ctx->VertexProgram.Current->IsPositionInvariant)) { userclip( ctx, VB->ClipPtr, m->clipmask, |
