diff options
author | Brian Paul <[email protected]> | 2010-04-01 22:15:16 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-04-01 22:17:13 -0600 |
commit | 038aba1f082d696a49db7c818766c5886f4efa83 (patch) | |
tree | 50586d1f23d9b286bebe03b5f924d62dcac7521c /src/mesa/shader/prog_parameter.c | |
parent | ee91c1e367b9e3bcbb156ed80ab94694f0d4b4ca (diff) |
glsl: pass datatype to _mesa_add_varying()
Will be needed later for transform feedback support.
Diffstat (limited to 'src/mesa/shader/prog_parameter.c')
-rw-r--r-- | src/mesa/shader/prog_parameter.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/shader/prog_parameter.c b/src/mesa/shader/prog_parameter.c index 25bb4f3d441..aac488c79ab 100644 --- a/src/mesa/shader/prog_parameter.c +++ b/src/mesa/shader/prog_parameter.c @@ -376,7 +376,8 @@ _mesa_add_sampler(struct gl_program_parameter_list *paramList, */ GLint _mesa_add_varying(struct gl_program_parameter_list *paramList, - const char *name, GLuint size, GLbitfield flags) + const char *name, GLuint size, GLenum datatype, + GLbitfield flags) { GLint i = _mesa_lookup_parameter_index(paramList, -1, name); if (i >= 0 && paramList->Parameters[i].Type == PROGRAM_VARYING) { @@ -386,7 +387,7 @@ _mesa_add_varying(struct gl_program_parameter_list *paramList, else { /*assert(size == 4);*/ i = _mesa_add_parameter(paramList, PROGRAM_VARYING, name, - size, GL_NONE, NULL, NULL, flags); + size, datatype, NULL, NULL, flags); return i; } } |