if ((polygonOffsetFactor != 0.0) || (polygonOffset != 0.0)) {
switch (polygonMode) {
case PolygonAttributes.POLYGON_POINT:
gl.glEnable(GL2.GL_POLYGON_OFFSET_POINT);
gl.glDisable(GL2.GL_POLYGON_OFFSET_LINE);
gl.glDisable(GL.GL_POLYGON_OFFSET_FILL);
break;
case PolygonAttributes.POLYGON_LINE:
gl.glEnable(GL2.GL_POLYGON_OFFSET_LINE);
gl.glDisable(GL2.GL_POLYGON_OFFSET_POINT);
gl.glDisable(GL.GL_POLYGON_OFFSET_FILL);