glu_tess_combine vertex_data problem

Hey all,

I’ve got the GLU_TESS_COMBINE from the Red Book working except for the vertex_data parameter - I think it’s pointing off into space somewhere, because when I try to print it from within the callback, attempting to access vertex_data[2][0] crashes my program.

I’m using c++, and have changed that malloc line to

GLdouble *vertex = new GLdouble[6] ;

that’s the only thing I think I changed. Any help would be greatly appreciated; I just don’t even understand what allocates that pointer in the first place.

(and I’m pretty new to this stuff; can you tell?)

-rose