glColor3ub

Hi,
I am using glColor3ub to draw GL_QUADS but every time i resize or call the timer function the color of the quads turn black. Hence every time renderScene is called.
glColor3ub(red,green,blue);
it is used in a for loop in which red ,green and blue changes in that for loop but when that for loop is called again (when RenderScene is called )the value are reset therefore it should give the same color.

I’m sorry to hear that.

Originally posted by jwatte:
I’m sorry to hear that.

READ : a question would help.

Using glColor3ub to draw a quad eh? Well shoot, i’m wasting my time using glVertex then.

Seriously though, could you post some code snippets? It’s hard to say what’s wrong without more info.

-SirKnight