[Mesa-dev] [Bug 56826] New: Not specifying user data for gluTessVertex causes NULL pointer to vertex callback.
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Nov 6 14:49:45 PST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=56826
Priority: medium
Bug ID: 56826
Assignee: mesa-dev at lists.freedesktop.org
Summary: Not specifying user data for gluTessVertex causes NULL
pointer to vertex callback.
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: noname+freedesktop at nurd.se
Hardware: x86-64 (AMD64)
Status: NEW
Version: git
Component: GLU
Product: Mesa
Created attachment 69647
--> https://bugs.freedesktop.org/attachment.cgi?id=69647&action=edit
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).
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121106/0882f9d2/attachment.html>
More information about the mesa-dev
mailing list