don't skip user clip plane clipping when the current vertex program is position invar...
authorRoland Scheidegger <rscheidegger@gmx.ch>
Fri, 22 Sep 2006 13:34:24 +0000 (13:34 +0000)
committerRoland Scheidegger <rscheidegger@gmx.ch>
Fri, 22 Sep 2006 13:34:24 +0000 (13:34 +0000)
src/mesa/tnl/t_vb_arbprogram.c

index 0ff26df..71fb45d 100644 (file)
@@ -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,