From c8f41885f4d6c899db5701f3b91ac24be75d8acf Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Fri, 21 Aug 2015 19:44:12 +0100 Subject: [PATCH] specs: Fix glTextureParameter[fi]v prototype. The output parameter can be an array. Fixes https://github.com/apitrace/apitrace/issues/376 --- specs/glapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/glapi.py b/specs/glapi.py index 8768dc007..954bcf5cb 100644 --- a/specs/glapi.py +++ b/specs/glapi.py @@ -1123,11 +1123,11 @@ def OutGlString(charType, lengthPtr, argName): GlFunction(Void, "glCopyTextureSubImage2D", [(GLtexture, "texture"), (GLint, "level"), (GLint, "xoffset"), (GLint, "yoffset"), (GLint, "x"), (GLint, "y"), (GLsizei, "width"), (GLsizei, "height")]), GlFunction(Void, "glCopyTextureSubImage3D", [(GLtexture, "texture"), (GLint, "level"), (GLint, "xoffset"), (GLint, "yoffset"), (GLint, "zoffset"), (GLint, "x"), (GLint, "y"), (GLsizei, "width"), (GLsizei, "height")]), GlFunction(Void, "glTextureParameterf", [(GLtexture, "texture"), (GLenum, "pname"), (GLfloat, "param")]), - GlFunction(Void, "glTextureParameterfv", [(GLtexture, "texture"), (GLenum, "pname"), (Pointer(Const(GLfloat)), "param")]), + GlFunction(Void, "glTextureParameterfv", [(GLtexture, "texture"), (GLenum, "pname"), (Array(Const(GLfloat), "_gl_param_size(pname)"), "params")]), GlFunction(Void, "glTextureParameteri", [(GLtexture, "texture"), (GLenum, "pname"), (GLint, "param")]), GlFunction(Void, "glTextureParameterIiv", [(GLtexture, "texture"), (GLenum, "pname"), (Array(Const(GLint), "_gl_param_size(pname)"), "params")]), GlFunction(Void, "glTextureParameterIuiv", [(GLtexture, "texture"), (GLenum, "pname"), (Array(Const(GLuint), "_gl_param_size(pname)"), "params")]), - GlFunction(Void, "glTextureParameteriv", [(GLtexture, "texture"), (GLenum, "pname"), (Pointer(Const(GLint)), "param")]), + GlFunction(Void, "glTextureParameteriv", [(GLtexture, "texture"), (GLenum, "pname"), (Array(Const(GLint), "_gl_param_size(pname)"), "params")]), GlFunction(Void, "glGenerateTextureMipmap", [(GLtexture, "texture")]), GlFunction(Void, "glBindTextureUnit", [(GLuint, "unit"), (GLtexture, "texture")]), GlFunction(Void, "glGetTextureImage", [(GLtexture, "texture"), (GLint, "level"), (GLenum, "format"), (GLenum, "type"), (GLsizei, "bufSize"), Out(GLpointer, "pixels")]),