Re: GLU.Tessellator crashes
Sven Panne <[email protected]> Sun, 26 Apr 2009 14:55:02 +0200
| Newsgroups | gmane.comp.lang.haskell.hopengl |
|---|---|
| Message-ID | <[email protected]> |
Am Freitag, 13. März 2009 00:39:49 schrieb Balazs Komuves: > I found the cause of the crashes. A patch which should solve the problem > (but changes the API, see below) is attached. > [...] > Since the vertex annotations are of arbitrary type, there is no default > value we could supply when GLU gives us zero pointers; [...] Well spotted! The SGI tessellator is the de facto standard, so we should really handle this bug. Although a list of (weight, property) pairs might really be better, I am extremely reluctant to change the API, but it turns out that we don't have to: We *have* a default value, namely the first vertex passed to the combiner. This is never NULL and the weights for the NULL vertices are always zero, so we can happily use this. A corresponding patch has been committed. Cheers, S.