From f9161413c9e4e3b595c5300c047fcfef0124c46a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Mon, 9 May 2011 09:16:16 +0100 Subject: [PATCH] Interpret glRenderMode return as a GLenum. --- glapi.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/glapi.py b/glapi.py index c0d5527..2ca2748 100644 --- a/glapi.py +++ b/glapi.py @@ -282,7 +282,7 @@ glapi.add_functions([ GlFunction(Void, "glTexGeniv", [(GLenum, "coord"), (GLenum, "pname"), (Const(Array(GLint, "__glTexGeniv_size(pname)")), "params")]), GlFunction(Void, "glFeedbackBuffer", [(GLsizei, "size"), (GLenum, "type"), Out(Array(GLfloat, "size"), "buffer")]), GlFunction(Void, "glSelectBuffer", [(GLsizei, "size"), Out(Array(GLuint, "size"), "buffer")]), - GlFunction(GLint, "glRenderMode", [(GLenum, "mode")]), + GlFunction(Alias("GLint", GLenum), "glRenderMode", [(GLenum, "mode")]), GlFunction(Void, "glInitNames", []), GlFunction(Void, "glLoadName", [(GLuint, "name")]), GlFunction(Void, "glPassThrough", [(GLfloat, "token")]), @@ -1545,7 +1545,6 @@ glapi.add_functions([ GlFunction(Void, "glSampleMaskEXT", [(GLclampf, "value"), (GLboolean, "invert")]), GlFunction(Void, "glSamplePatternEXT", [(GLenum, "pattern")]), - # GL_NV_fence GlFunction(Void, "glDeleteFencesNV", [(GLsizei, "n"), (Const(Array(GLfenceNV, "n")), "fences")]), GlFunction(Void, "glGenFencesNV", [(GLsizei, "n"), Out(Array(GLfenceNV, "n"), "fences")]), -- 2.7.4