I have a working openGL app on Mac OS X 10.3.9 that does the following (simplified):
tess = gluNewTest;
…
list = glGenList(1);
…
gluTessBeginPolygon(tess, …)
…
// Make a complex polygon
…
gluTessEndPolygon(tess);
…
glEndList();
later on I use the list as follows:
glColor3f(r, g, b);
glCallList(list);
Each time I change the color the poly is correctly rendered in that color.
On a Windows XP laptop the same code seems to include the current color in the list so that whatever color was current prior to the glNewTess is remembered in the list - each time glCallList is executed the color value present when the list was made appears rather than the color I set right before glCallList.
This seems counter to all documentation and working openGL on the Mac.
I don’t see any reason gluTess* should do anything with state…?
Any ideas?
thanks
Todd