From: Roland Scheidegger Date: Fri, 22 Sep 2006 13:34:24 +0000 (+0000) Subject: don't skip user clip plane clipping when the current vertex program is position invar... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a0fb128c30f7f8defcdd7f98b1ded47c83355f9;p=mesa.git don't skip user clip plane clipping when the current vertex program is position invariant. --- diff --git a/src/mesa/tnl/t_vb_arbprogram.c b/src/mesa/tnl/t_vb_arbprogram.c index 0ff26df713a..71fb45dd95c 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,