don't skip user clip plane clipping when the current vertex program is position invariant.

This commit is contained in:
Roland Scheidegger
2006-09-22 13:34:24 +00:00
parent 7e9799ac3d
commit 8a0fb128c3

View 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,