gl.glEnable(GL2ES1.GL_CLIP_PLANE0 + planeIndex);
record.planeEnabled[planeIndex] = true;</BUG>
}
record.buf.rewind();
record.buf.put(state.getPlaneEquations(planeIndex));
<BUG>record.buf.flip();
gl.getGL2().glClipPlane(GL2ES1.GL_CLIP_PLANE0 + planeIndex, record.buf);
} else {
if (!record.isValid() || record.planeEnabled[planeIndex]) {
gl.glDisable(GL2ES1.GL_CLIP_PLANE0 + planeIndex);
record.planeEnabled[planeIndex] = false;</BUG>
}

gl.glEnable(GL2ES1.GL_CLIP_PLANE0 + planeIndex);
}
record.planeEnabled[planeIndex] = true;
}
record.buf.rewind();
record.buf.put(state.getPlaneEquations(planeIndex));
record.buf.flip();
if (gl.isGL2ES1()) {
gl.getGL2().glClipPlane(GL2ES1.GL_CLIP_PLANE0 + planeIndex, record.buf);
