summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-07-23 12:55:38 -0600
committerBrian Paul <brianp@vmware.com>2011-07-23 12:55:38 -0600
commitb6534242899a161df4c15b21c0e1b3aa925df447 (patch)
treee08087bf402802ef4bf0b2ba25fecb4641f706ce /tests
parent02815b6b230fd32a7d0ab14fccc76044a193005b (diff)
Add ARB_shader_objects wrapper for glGetAttribLocation()
Diffstat (limited to 'tests')
-rw-r--r--tests/util/piglit-shader-gl.c3
-rw-r--r--tests/util/piglit-util.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/util/piglit-shader-gl.c b/tests/util/piglit-shader-gl.c
index bfe9fe42..0af64255 100644
--- a/tests/util/piglit-shader-gl.c
+++ b/tests/util/piglit-shader-gl.c
@@ -39,6 +39,7 @@ PFNGLCREATESHADERPROC piglit_CreateShader = NULL;
PFNGLDELETEPROGRAMPROC piglit_DeleteProgram = NULL;
PFNGLDELETESHADERPROC piglit_DeleteShader = NULL;
PFNGLGETACTIVEUNIFORMPROC piglit_GetActiveUniform = NULL;
+PFNGLGETATTRIBLOCATIONPROC piglit_GetAttribLocation = NULL;
PFNGLGETPROGRAMINFOLOGPROC piglit_GetProgramInfoLog = NULL;
PFNGLGETPROGRAMIVPROC piglit_GetProgramiv = NULL;
PFNGLGETSHADERINFOLOGPROC piglit_GetShaderInfoLog = NULL;
@@ -85,6 +86,7 @@ init_functions_from_core(void)
piglit_DeleteProgram = glDeleteProgram;
piglit_DeleteShader = glDeleteShader;
piglit_GetActiveUniform = glGetActiveUniform;
+ piglit_GetAttribLocation = glGetAttribLocation;
piglit_GetProgramInfoLog = glGetProgramInfoLog;
piglit_GetProgramiv = glGetProgramiv;
piglit_GetShaderInfoLog = glGetShaderInfoLog;
@@ -134,6 +136,7 @@ init_functions_from_extension(void)
piglit_DeleteProgram = glDeleteObjectARB;
piglit_DeleteShader = glDeleteObjectARB;
piglit_GetActiveUniform = glGetActiveUniformARB;
+ piglit_GetAttribLocation = glGetAttribLocationARB;
piglit_GetProgramInfoLog = glGetInfoLogARB;
piglit_GetProgramiv = glGetObjectParameterivARB;
piglit_GetShaderInfoLog = glGetInfoLogARB;
diff --git a/tests/util/piglit-util.h b/tests/util/piglit-util.h
index e877c711..0f6b12e8 100644
--- a/tests/util/piglit-util.h
+++ b/tests/util/piglit-util.h
@@ -205,6 +205,7 @@ extern GLint piglit_ARBfp_pass_through;
#define piglit_DeleteProgram glDeleteProgram
#define piglit_DeleteShader glDeleteShader
#define piglit_GetActiveUniform glGetActiveUniform
+#define piglit_GetAttribLocation glGetAttribLocation
#define piglit_GetProgramInfoLog glGetProgramInfoLog
#define piglit_GetProgramiv glGetProgramiv
#define piglit_GetShaderInfoLog glGetShaderInfoLog
@@ -247,6 +248,7 @@ extern PFNGLCREATESHADERPROC piglit_CreateShader;
extern PFNGLDELETEPROGRAMPROC piglit_DeleteProgram;
extern PFNGLDELETESHADERPROC piglit_DeleteShader;
extern PFNGLGETACTIVEUNIFORMPROC piglit_GetActiveUniform;
+extern PFNGLGETATTRIBLOCATIONPROC piglit_GetAttribLocation;
extern PFNGLGETPROGRAMINFOLOGPROC piglit_GetProgramInfoLog;
extern PFNGLGETPROGRAMIVPROC piglit_GetProgramiv;
extern PFNGLGETSHADERINFOLOGPROC piglit_GetShaderInfoLog;