Tessellation bug fix for vertex[Data] callback

In net.java.games.jogl.impl.tesselator.Render.java, line 306 of the Sept 5 release, the line

            tess.callVertexOrVertexData( e.Org.data);

should be

            tess.callVertexOrVertexData( e.Org.coords);

The vertex(coords) and vertexData(coords, userData) callbacks were getting the userData information in place of the coords.

pdj

It’s not a bug, it’s a feature. :wink:
The way it works now is correct. The idea is that you can pass whatever vertex representation you want to gluTessVertex. This representation will also be what the vertex callback receives.
You need to pass the coordinates seperately because the tesselator needs these to perform the tesselation.
The userdata parameter is the Object that is specified when you call gluTessBeginPolygon.