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 0ff26df713a7bbd639143db0a004a40f43b5e6bd..71fb45dd95c1b7c6cac7b9e9f7d2a2c1cc801d26 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,