In the code posted by rombust the gl_ClipDistance variables are set to some value that will effectively discard the primitive.

When GL_CLIP_DISTANCE0 or GL_CLIP_DISTANCE1 is enabled then both...