Mercurial > touhou
diff pytouhou/opengl/background.py @ 125:0313ca2c50e9
Small refactoring and massive performance improvements
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sat, 10 Sep 2011 15:04:47 +0200 |
parents | 2a03940deea3 |
children |
line wrap: on
line diff
--- a/pytouhou/opengl/background.py +++ b/pytouhou/opengl/background.py @@ -38,8 +38,8 @@ def get_background_rendering_data(backgr nb_vertices = len(vertices) vertices = pack(str(3 * nb_vertices) + 'f', *chain(*vertices)) - uvs = pack(str(2 * nb_vertices) + 'f', *chain(*uvs)) - colors = pack(str(4 * nb_vertices) + 'B', *chain(*colors)) + uvs = pack(str(2 * nb_vertices) + 'f', *uvs) + colors = pack(str(4 * nb_vertices) + 'B', *colors) background._rendering_data = [(key, (nb_vertices, vertices, uvs, colors))]