AssertionError: More than one generic attribute with index 0 (pyglet-1.2alpha1)

29 views
Skip to first unread message

Doeke

unread,
Aug 10, 2012, 10:30:22 AM8/10/12
to pyglet...@googlegroups.com
When trying to use a single generic+static_draw attribute. I had a look in vertexdomain.py, and it appears that static attributes end up being added before *and* after being grouped and interleaved:

            if usage == GL_STATIC_DRAW:
                # Group attributes for interleaved buffer
                static_attributes.append(attribute)
                attributes.append(attribute)
...
            attributes.extend(static_attributes)

Removing the line "attributes.append(attribute)" seems to fix the problem.

(btw, using generic attributes for position/normal is the correct way to do it now that gl_Normal etc are depreciated, is it not?)
Reply all
Reply to author
Forward
0 new messages