Skip to content

Commit d577b28

Browse files
author
swiftcoder
committed
Workaround for pyglet bug which crashes on use of texture unit 0 in vertex declarations.
1 parent d090372 commit d577b28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sprite.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def __init__(self, sx, sy, tint=[1,1,1,1]):
1212
texcoords0 = [0,0, 1,0, 1,1, 0,1]
1313

1414
indices = [0,1,2, 0,2,3]
15-
self.vlist = pyglet.graphics.vertex_list_indexed( len(verts)/2, indices, ('v2f', verts), ('0t2f', texcoords0) )
15+
self.vlist = pyglet.graphics.vertex_list_indexed( len(verts)/2, indices, ('v2f', verts), ('t2f', texcoords0) )
1616

1717
def draw(self):
1818
glDepthMask(GL_FALSE)

0 commit comments

Comments
 (0)