JoglPipeline.resetRenderingAttributes does not call gl.glDisable(GL.GL_STENCIL_TEST); If the previous updateRenderingAttributes() call has enabled this function, then an appearance that has a null RenderingAttributes will not clear the stencil function and hence incorrectly apply the same stencil values to the next draw call.
A work around to this bug is to simply set a RenderingAttributes to all Appearance objects
Fixed in branch 1.7.0