Commit 99d07afe authored by Marek Olšák's avatar Marek Olšák

util: add piglit_UniformMatrix4fv

parent a37bba90
......@@ -46,6 +46,7 @@ PFNGLUNIFORM2FVPROC piglit_Uniform2fv = NULL;
PFNGLUNIFORM3FVPROC piglit_Uniform3fv = NULL;
PFNGLUNIFORM4FVPROC piglit_Uniform4fv = NULL;
PFNGLUNIFORM1IPROC piglit_Uniform1i = NULL;
PFNGLUNIFORMMATRIX4FVPROC piglit_UniformMatrix4fv = NULL;
static void
init_functions_from_core(void)
......@@ -69,6 +70,7 @@ init_functions_from_core(void)
piglit_Uniform3fv = glUniform3fv;
piglit_Uniform4fv = glUniform4fv;
piglit_Uniform1i = glUniform1i;
piglit_UniformMatrix4fv = glUniformMatrix4fv;
}
static void
......@@ -93,6 +95,7 @@ init_functions_from_extension(void)
piglit_Uniform3fv = glUniform3fvARB;
piglit_Uniform4fv = glUniform4fvARB;
piglit_Uniform1i = glUniform1iARB;
piglit_UniformMatrix4fv = glUniformMatrix4fvARB;
}
void
......
......@@ -174,6 +174,7 @@ extern GLint piglit_ARBfp_pass_through;
#define piglit_Uniform3fv glUniform3fv
#define piglit_Uniform4fv glUniform4fv
#define piglit_Uniform1i glUniform1i
#define piglit_UniformMatrix4fv glUniformMatrix4fv
#else
extern PFNGLATTACHSHADERPROC piglit_AttachShader;
extern PFNGLCOMPILESHADERPROC piglit_CompileShader;
......@@ -194,6 +195,7 @@ extern PFNGLUNIFORM2FVPROC piglit_Uniform2fv;
extern PFNGLUNIFORM3FVPROC piglit_Uniform3fv;
extern PFNGLUNIFORM4FVPROC piglit_Uniform4fv;
extern PFNGLUNIFORM1IPROC piglit_Uniform1i;
extern PFNGLUNIFORMMATRIX4FVPROC piglit_UniformMatrix4fv;
#endif
/*@}*/
......
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