Error message: coordinate too large

Hi,
I’m using opengl to creat a tessellation object. Here is the code snippet I have that does this,
GLUtesselator * tobj = NULL;
tobj = gluNewTess();
gluTessCallback(tobj, GLU_TESS_VERTEX, (GLvoid () () ) &glVertex2dv;
gluTessCallback(tobj, GLU_TESS_BEGIN, (GLvoid (
) () ) &beginCallback;
gluTessCallback(tobj, GLU_TESS_END, (GLvoid () () ) &endCallback;
gluTessCallback(tobj, GLU_TESS_ERROR, (GLvoid (
) () ) &errorCallback;
gluTessBeginPolygon(tobj, NULL);
gluTessBeginContour(tobj);
for(int i=0;i<array.size();i++)
{
gluTessVertex(tobj,array[i],array[i]);
}
gluTessEndContour(tobj);
gluTessEndPolygon(tonj);
gluDeleteTess(tobj);

All the call back functions are defined appropriately and array, is an array of GLdouble s containing the vertices’ coordinates. When I run my code on a 32-bit machine, everything is fine, but when I run it on a 64-bit machine, I get the error message " a coordinate is too large." This definitely is not the case since my largest coordinate is about 1000. Has anyone ever encountered anything similar to this? Does anyone know why this is happening and what the solution is? any help is greatly appreciated. Thanks,
Fred

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.