diff options
author | Ian Romanick <[email protected]> | 2011-08-18 15:22:21 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2011-10-04 13:17:47 -0700 |
commit | c097c63aa880e2b84e6b1d78a8808d42864f72fc (patch) | |
tree | 8cfb4f9a89e1b49be52dae79c5936bda15fbbe7f /src/mesa/main/shaderapi.c | |
parent | a339ee8d852c08ce7af51a518e0b18b9f0ab324c (diff) |
mesa: Determine GL_ACTIVE_ATTRIBUTES by walking the GLSL IR.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r-- | src/mesa/main/shaderapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index b13ec45df36..657de66e9a1 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -569,7 +569,7 @@ get_programiv(struct gl_context *ctx, GLuint program, GLenum pname, GLint *param *params = shProg->NumShaders; break; case GL_ACTIVE_ATTRIBUTES: - *params = attribs ? attribs->NumParameters : 0; + *params = _mesa_count_active_attribs(shProg); break; case GL_ACTIVE_ATTRIBUTE_MAX_LENGTH: *params = _mesa_longest_parameter_name(attribs, PROGRAM_INPUT) + 1; |