Mercurial > touhou
diff pytouhou/ui/opengl/renderer.pyx @ 606:3c2f96f1d715
Fix compilation under Cython 0.22, by making the pyx and the pxd declarations’ except clause similar.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 26 Nov 2014 13:36:38 +0100 |
parents | 974decb8df4f |
children | a6a191e371c7 |
line wrap: on
line diff
--- a/pytouhou/ui/opengl/renderer.pyx +++ b/pytouhou/ui/opengl/renderer.pyx @@ -130,7 +130,7 @@ cdef class Renderer: glBindBuffer(GL_ARRAY_BUFFER, 0) - cdef void render_elements(self, elements): + cdef void render_elements(self, elements) except *: cdef Element element nb_elements = find_objects(self, elements) @@ -226,7 +226,7 @@ cdef class Renderer: glPopDebugGroup() - cdef void render_quads(self, rects, colors, GLuint texture): + cdef void render_quads(self, rects, colors, GLuint texture) except *: # There is nothing that batch more than two quads on the same texture, currently. cdef Vertex buf[8] cdef unsigned short indices[12]