summaryrefslogtreecommitdiff
path: root/src/glu
diff options
context:
space:
mode:
authorGareth Hughes <gareth@valinux.com>1999-10-11 17:48:53 +0000
committerGareth Hughes <gareth@valinux.com>1999-10-11 17:48:53 +0000
commitdbecc01c6efb5cc5731d7a575493a03914cef8d0 (patch)
tree7fa3c04758ea8e18f341155d386c8c781ff110c8 /src/glu
parent4aaafa62659caa0c0fd65b3332423d500e37044c (diff)
Correctly initialized GLUtesselator user data pointer.
Diffstat (limited to 'src/glu')
-rw-r--r--src/glu/mesa/tess.c8
-rw-r--r--src/glu/mesa/tess.h7
2 files changed, 11 insertions, 4 deletions
diff --git a/src/glu/mesa/tess.c b/src/glu/mesa/tess.c
index 029c82f2d4..202aee4dd1 100644
--- a/src/glu/mesa/tess.c
+++ b/src/glu/mesa/tess.c
@@ -1,4 +1,4 @@
-/* $Id: tess.c,v 1.11 1999/10/11 17:26:48 gareth Exp $ */
+/* $Id: tess.c,v 1.12 1999/10/11 17:48:53 gareth Exp $ */
/*
* Mesa 3-D graphics library
@@ -26,6 +26,9 @@
/*
* $Log: tess.c,v $
+ * Revision 1.12 1999/10/11 17:48:53 gareth
+ * Correctly initialized GLUtesselator user data pointer.
+ *
* Revision 1.11 1999/10/11 17:26:48 gareth
* Updated debugging output. I'm going to change it all to something
* much more like the GLX project. This was a set of macros left over
@@ -182,7 +185,8 @@ void GLAPIENTRY gluTessBeginPolygon( GLUtesselator *tobj, void *polygon_data )
tess_cleanup( tobj );
}
- tobj->user_data = polygon_data;
+ tobj->data = polygon_data;
+ tobj->vertex_count = 0;
DEBUGP( 15, ( "<- gluTessBeginPolygon( tobj:%p data:%p )\n", tobj, polygon_data ) );
}
diff --git a/src/glu/mesa/tess.h b/src/glu/mesa/tess.h
index 3e3290707b..cfca6c1217 100644
--- a/src/glu/mesa/tess.h
+++ b/src/glu/mesa/tess.h
@@ -1,4 +1,4 @@
-/* $Id: tess.h,v 1.10 1999/10/11 17:28:05 gareth Exp $ */
+/* $Id: tess.h,v 1.11 1999/10/11 17:49:22 gareth Exp $ */
/*
* Mesa 3-D graphics library
@@ -26,6 +26,9 @@
/*
* $Log: tess.h,v $
+ * Revision 1.11 1999/10/11 17:49:22 gareth
+ * Correctly initialized GLUtesselator user data pointer.
+ *
* Revision 1.10 1999/10/11 17:28:05 gareth
* Allow debugging output capture under Win32. This seems really
* broken to me, but that's Windows for you...
@@ -96,7 +99,7 @@ struct GLUtesselator
#endif
heap_t *ears;
hashtable_t *cvc_lists;
- void *user_data;
+ void *data;
GLuint label;
GLenum error;
};