Commit b6534242 authored by Brian Paul's avatar Brian Paul

Add ARB_shader_objects wrapper for glGetAttribLocation()

parent 02815b6b
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment