diff options
author | Ian Romanick <[email protected]> | 2011-08-18 15:08:51 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2011-10-04 13:17:47 -0700 |
commit | a339ee8d852c08ce7af51a518e0b18b9f0ab324c (patch) | |
tree | a308b09787da75a2d847d769b4a5b6958fa05af4 /src/mesa/main/shader_query.cpp | |
parent | 84d71a07bb06fe5fe231b8983558fbd3608ec6f0 (diff) |
mesa: Remove unused gl_shader_program::Attributes
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/shader_query.cpp')
-rw-r--r-- | src/mesa/main/shader_query.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp index 3a40a243ffb..636ab0f8d0b 100644 --- a/src/mesa/main/shader_query.cpp +++ b/src/mesa/main/shader_query.cpp @@ -68,16 +68,11 @@ _mesa_BindAttribLocationARB(GLhandleARB program, GLuint index, return; } - /* this will replace the current value if it's already in the list */ - /* Add VERT_ATTRIB_GENERIC0 because that's how the linker differentiates + /* Replace the current value if it's already in the list. Add + * VERT_ATTRIB_GENERIC0 because that's how the linker differentiates * between built-in attributes and user-defined attributes. */ shProg->AttributeBindings->put(index + VERT_ATTRIB_GENERIC0, name); - i = _mesa_add_attribute(shProg->Attributes, name, size, datatype, index); - if (i < 0) { - _mesa_error(ctx, GL_OUT_OF_MEMORY, "glBindAttribLocation"); - return; - } /* * Note that this attribute binding won't go into effect until |