Mercurial > touhou
diff pytouhou/ui/opengl/background.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/background.pyx +++ b/pytouhou/ui/opengl/background.pyx @@ -75,7 +75,7 @@ cdef class BackgroundRenderer: glEnableVertexAttribArray(2) - cdef void render_background(self): + cdef void render_background(self) nogil: if use_debug_group: glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, "Background drawing") @@ -108,7 +108,7 @@ cdef class BackgroundRenderer: glPopDebugGroup() - cdef void load(self, background, GLuint[MAX_TEXTURES] textures): + cdef void load(self, background, GLuint[MAX_TEXTURES] textures) except *: cdef float ox, oy, oz, ox2, oy2, oz2 cdef GLsizei nb_vertices = 0, nb_indices = 0