Commit 3fd74198 authored by Ian Romanick's avatar Ian Romanick

Add wrapper for glGetUniformfv

parent 609aa263
......@@ -47,6 +47,7 @@ PFNGLUNIFORM3FVPROC piglit_Uniform3fv = NULL;
PFNGLUNIFORM4FVPROC piglit_Uniform4fv = NULL;
PFNGLUNIFORM1IPROC piglit_Uniform1i = NULL;
PFNGLUNIFORMMATRIX4FVPROC piglit_UniformMatrix4fv = NULL;
PFNGLGETUNIFORMFVPROC piglit_GetUniformfv = NULL;
static void
init_functions_from_core(void)
......@@ -71,6 +72,7 @@ init_functions_from_core(void)
piglit_Uniform4fv = glUniform4fv;
piglit_Uniform1i = glUniform1i;
piglit_UniformMatrix4fv = glUniformMatrix4fv;
piglit_GetUniformfv = glGetUniformfv;
}
static void
......@@ -96,6 +98,7 @@ init_functions_from_extension(void)
piglit_Uniform4fv = glUniform4fvARB;
piglit_Uniform1i = glUniform1iARB;
piglit_UniformMatrix4fv = glUniformMatrix4fvARB;
piglit_GetUniformfv = glGetUniformfvARB;
}
void
......
......@@ -175,6 +175,7 @@ extern GLint piglit_ARBfp_pass_through;
#define piglit_Uniform4fv glUniform4fv
#define piglit_Uniform1i glUniform1i
#define piglit_UniformMatrix4fv glUniformMatrix4fv
#define piglit_GetUniformfv glGetUniformfv
#else
extern PFNGLATTACHSHADERPROC piglit_AttachShader;
extern PFNGLCOMPILESHADERPROC piglit_CompileShader;
......@@ -196,6 +197,7 @@ extern PFNGLUNIFORM3FVPROC piglit_Uniform3fv;
extern PFNGLUNIFORM4FVPROC piglit_Uniform4fv;
extern PFNGLUNIFORM1IPROC piglit_Uniform1i;
extern PFNGLUNIFORMMATRIX4FVPROC piglit_UniformMatrix4fv;
extern PFNGLGETUNIFORMFVPROC piglit_GetUniformfv;
#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