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?)
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pyglet-users/-/RUwCHR4MU5sJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en.