<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Not specifying user data for gluTessVertex causes NULL pointer to vertex callback."
href="https://bugs.freedesktop.org/show_bug.cgi?id=56826">56826</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Not specifying user data for gluTessVertex causes NULL pointer to vertex callback.
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>noname+freedesktop@nurd.se
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Component</th>
<td>GLU
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=69647" name="attach_69647" title="Reproduces bug in libtess.">attachment 69647</a> <a href="attachment.cgi?id=69647&action=edit" title="Reproduces bug in libtess.">[details]</a></span>
Reproduces bug in libtess.
Overview
When setting up a callback function for the polygon tesselator (libtess), the
received pointer (which should point to a vertex) is NULL if the third argument
(a pointer to user data) is NULL.
Steps to reproduce
1) Create GLUtesselator object
2) Specify a GLU_TESS_VERTEX or GLU_TESS_VERTEX_DATA callback
3) Tessellate a polygon
Or see attached file.
Actual results
Supplied vertex callback argument is NULL.
Expected results
Supplied vertex callback argument should point to valid vertex data.
Build Date & Platform
git 2012-11-06, Ubuntu Linux 12.04
Additional Information
Attached test which runs the tessellation in 2 runs, first with the user data
pointer set to a reference to a dummy integer (works), and then with the user
data pointer set to NULL (doesn't work).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>