Commit a14cd27e authored by Ian Romanick's avatar Ian Romanick

Add piglit_BindAttribLocation

parent 394d2317
......@@ -28,6 +28,7 @@
#include "piglit-util.h"
PFNGLATTACHSHADERPROC piglit_AttachShader = NULL;
PFNGLBINDATTRIBLOCATIONPROC piglit_BindAttribLocation = NULL;
PFNGLCOMPILESHADERPROC piglit_CompileShader = NULL;
PFNGLCREATEPROGRAMPROC piglit_CreateProgram = NULL;
PFNGLCREATESHADERPROC piglit_CreateShader = NULL;
......@@ -53,6 +54,7 @@ static void
init_functions_from_core(void)
{
piglit_AttachShader = glAttachShader;
piglit_BindAttribLocation = glBindAttribLocation;
piglit_CompileShader = glCompileShader;
piglit_CreateProgram = glCreateProgram;
piglit_CreateShader = glCreateShader;
......@@ -79,6 +81,7 @@ static void
init_functions_from_extension(void)
{
piglit_AttachShader = glAttachObjectARB;
piglit_BindAttribLocation = glBindAttribLocationARB;
piglit_CompileShader = glCompileShaderARB;
piglit_CreateProgram = glCreateProgramObjectARB;
piglit_CreateShader = glCreateShaderObjectARB;
......
......@@ -162,6 +162,7 @@ extern GLint piglit_ARBfp_pass_through;
/*@{*/
#if defined(PIGLIT_GLES2)
#define piglit_AttachShader glAttachShader
#define piglit_BindAttribLocation glBindAttribLocation
#define piglit_CompileShader glCompileShader
#define piglit_CreateProgram glCreateProgram
#define piglit_CreateShader glCreateShader
......@@ -184,6 +185,7 @@ extern GLint piglit_ARBfp_pass_through;
#define piglit_GetUniformfv glGetUniformfv
#else
extern PFNGLATTACHSHADERPROC piglit_AttachShader;
extern PFNGLBINDATTRIBLOCATIONPROC piglit_BindAttribLocation;
extern PFNGLCOMPILESHADERPROC piglit_CompileShader;
extern PFNGLCREATEPROGRAMPROC piglit_CreateProgram;
extern PFNGLCREATESHADERPROC piglit_CreateShader;
......
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