Bug 56826 - Not specifying user data for gluTessVertex causes NULL pointer to vertex callback.
Summary: Not specifying user data for gluTessVertex causes NULL pointer to vertex call...
Status: RESOLVED NOTABUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: GLU (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-06 22:49 UTC by Fredrik Hultin
Modified: 2012-11-07 00:17 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Reproduces bug in libtess. (732 bytes, text/plain)
2012-11-06 22:49 UTC, Fredrik Hultin
Details

Description Fredrik Hultin 2012-11-06 22:49:45 UTC
Created attachment 69647 [details]
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).
Comment 1 Fredrik Hultin 2012-11-07 00:17:19 UTC
Hmm, I realize now that I have probably misunderstood how the tesselator is supposed to work. It just hands me the data I supplied. (Which makes the whole feature a lot less useful, but that's another discussion).


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.