pyglet bugfix

2 views
Skip to first unread message

NathanW

unread,
Oct 7, 2008, 3:56:14 PM10/7/08
to pyglet-users
Hello,
I've started playing around with pyglet for the first time. It is
very cool, kudos to everyone involved. I'm porting a bunch of pygame
code to pyglet to see what's different and how fast things are. First
thing is a tile engine (everyone's first pyglet project).

I found a small bug in pyglet 1.1.1. When resizing vertex lists, the
texture coords list doesn't resize properly. It is a problem
invalidating the cache. The fix:

Add line 363 in graphics/vertexdomain.py:
self._tex_coords_cache_version = None

There might be other caches that should be invalidated, I'm not
familiar enough with the code to know exactly what.
--
Nathan Whitehead

Alex Holkner

unread,
Oct 7, 2008, 5:37:09 PM10/7/08
to pyglet...@googlegroups.com

Thanks, fixed in r2303 (trunk) and r2304 (pyglet-1.1-maintenance).

Alex.

Reply all
Reply to author
Forward
0 new messages