I think here may be a mistake?ofPath default value:UseShapeColor

In ofGLRenderer
//----------------------------------------------------------
//Resets openGL parameters back to OF defaults
void ofGLRenderer::setupGraphicDefaults(){
glEnableClientState(GL_VERTEX_ARRAY);
glDisableClientState(GL_NORMAL_ARRAY);
glDisableClientState(GL_COLOR_ARRAY);
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
setStyle(ofStyle());
path.setMode(ofPath::POLYLINES);
path.setUseShapeColor(false);
}

this Line :
path.setUseShapeColor(false);

but in ofPath: the init value is bUseShapeColor = true;

ofPath::ofPath(){
strokeWidth = 0;
bFill = true;
windingMode = OF_POLY_WINDING_ODD;
prevCurveRes = 20;
curveResolution = 20;
circleResolution = 20;
mode = COMMANDS;
bNeedsTessellation = false;
bHasChanged = false;
bUseShapeColor = true;
bNeedsPolylinesGeneration = false;
clear();
}

I think “true” is right,because if “false”,I can’t change the color via “ofSetColor” when using such as “ofDrawXX” …

but if “true” also has problems,
so i do like this where i draw something:

ofGetCurrentRenderer()->getPath().setUseShapeColor(true);//////here set,not change ofGLRenderer “false”
ofDrawRectRounded(R,roundRadius);
ofGetCurrentRenderer()->getPath().setUseShapeColor(false);