mesa: rework GLSL vertex attribute binding
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 16 Sep 2008 21:50:44 +0000 (15:50 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 16 Sep 2008 21:50:44 +0000 (15:50 -0600)
commite53296c928d80c6627a9551345c160533aa1a19e
tree28816070035898254f694606907d9197a27b2770
parent37607aeaf8b0fd35213635ba1c3743b6e059d48f
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