comparison pytouhou/ui/opengl/texture.pyx @ 581:cb8a443bc046

Fix a compilation issue on Cython 0.20.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 07 Sep 2014 13:26:41 +0200
parents b8df946d394d
children 6e79756b7f42
comparison
equal deleted inserted replaced
580:8a8c2e519637 581:cb8a443bc046
38 38
39 39
40 cdef void load(self, dict anms): 40 cdef void load(self, dict anms):
41 glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, "Texture loading") 41 glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, "Texture loading")
42 for anm in sorted(anms.values(), key=is_ascii): 42 for anm in sorted(anms.values(), key=is_ascii):
43 glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, "Loading textures from ANM %s" % anm) 43 glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, "Loading textures from ANM")
44 for entry in anm: 44 for entry in anm:
45 if entry.texture is None: 45 if entry.texture is None:
46 texture = decode_png(self.loader, entry.first_name, entry.secondary_name) 46 texture = decode_png(self.loader, entry.first_name, entry.secondary_name)
47 elif not isinstance(entry.texture, self.texture_class): 47 elif not isinstance(entry.texture, self.texture_class):
48 texture = entry.texture 48 texture = entry.texture