j, oldcolors is a pointer. So &oldcolors is a pointer to a pointer. Instead I think the error may be that the glGetFloatv call is being made inbetween glBegin and glEnd.
Originally posted by DFrey: j, oldcolors is a pointer. So &oldcolors is a pointer to a pointer. Instead I think the error may be that the glGetFloatv call is being made inbetween glBegin and glEnd.
the glGetFloatv call is not between glBegin and glEnd.