mesa: rework GLSL vertex attribute binding
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 16 Sep 2008 22:28:36 +0000 (16:28 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 16 Sep 2008 22:28:36 +0000 (16:28 -0600)
commit27341a97a17b23fdf57d33f78b475a474db71e4a
treefb37654af175dd7d17d9e6ef2b194346b4c17778
parentd43951192baa7b76d3e035d689f73c1d2955cddb
mesa: rework GLSL vertex attribute binding

Calls to glBindAttribLocation() should not take effect until the next time
that glLinkProgram() is called.
gl_shader_program::Attributes now just contains user-defined bindings.
gl_shader_program::VertexProgram->Attributes contains the actual/final bindings.
src/mesa/main/mtypes.h
src/mesa/shader/shader_api.c
src/mesa/shader/slang/slang_link.c
src/mesa/shader/slang/slang_link.h