red lines

Started by
1 comment, last by Byron 15 years, 10 months ago
I draw a mesh in black and then I draw lines over the top of it using DrawArrays. Fun thing is that no matter what I set the colour to the lines are always in red. Any idea what I am doing wrong? Code: glDisable(GL_BLEND); glColor3f(0.0f,0.0f,0.0f); glInterleavedArrays( GL_V3F, 0, m_pTris ); glDrawArrays( GL_TRIANGLES, 0, m_vTriMeshPrimitives.size() * 3 ); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE); glBlendFunc(GL_DST_ALPHA, GL_ONE); glColor3f(1.0f,1.0f,1.0f); glScalef(1.00001f,1.00001f,1.00001f); glInterleavedArrays( GL_V3F, 0, m_pLines ); glDrawArrays( GL_LINES, 0, m_dwNumLines * 2 );
ByronBoxes
Advertisement
and I have no idea why this posted twice.
ByronBoxes
gah - solved it. I had a rogue texture set in the base code and it was overriding the colour.
ByronBoxes

This topic is closed to new replies.

Advertisement