Mercurial > touhou
diff pytouhou/ui/opengl/shader.pyx @ 584:538b52aafbca
Split GLenum into subtypes, in order to add type safety when calling OpenGL functions.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 08 Oct 2014 13:21:03 +0200 |
parents | 6e79756b7f42 |
children | e15672733c93 |
line wrap: on
line diff
--- a/pytouhou/ui/opengl/shader.pyx +++ b/pytouhou/ui/opengl/shader.pyx @@ -57,7 +57,7 @@ cdef class Shader: if use_debug_group: glPopDebugGroup() - cdef void create_shader(self, const GLchar *string, GLenum shader_type): + cdef void create_shader(self, const GLchar *string, GLenum_shader shader_type): cdef GLint temp cdef const GLchar *strings[2] strings[:] = [shader_header, string]