[HOpenGL] GLU.Tessellator crashes
Sven Panne
Sven.Panne at aedion.de
Sun Apr 26 08:55:02 EDT 2009
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.
More information about the HOpenGL
mailing list