[solved] ofLine does not apply glBlend Mode....

Hi,

i am making a simple app that draws ofLines and make them blend with

  
  
glEnable (GL_BLEND);  
glBlendFunc (GL_SRC_ALPHA, GL_ONE);  
  

but this is working when i use ofCircle for example but not when applying to ofLine();
any idea?

[edit]
just found that when i apply
ofEnableSmoothing();
lines do not get blended.
So now the problem would be to create smooth lines without ofEnableSmoothing(); or bypass this problem.
any suggestion?

[edit 2]

so the problem was that ofEnableSmoothing(); is this function:

  
  
//----------------------------------------------------------  
void startSmoothing();  
void startSmoothing(){  
	#ifndef TARGET_OPENGLES  
		glPushAttrib(GL_COLOR_BUFFER_BIT | GL_ENABLE_BIT);  
	#endif  
  
	glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);  
	glEnable(GL_LINE_SMOOTH);  
  
	//why do we need this?  
	glEnable(GL_BLEND);  
	glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);  
}  
  

and as you see it contains
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
so the blending i wanted : glBlendFunc(GL_SRC_ALPHA, GL_ONE); was overwritten.

I do not understand why there is this blending functs. in smoothing… ???