diff options
author | Brian <[email protected]> | 2007-01-09 17:49:24 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-01-09 17:49:24 -0700 |
commit | 3209c3ed0d82c158eed1020759aacf51ba1c1ad5 (patch) | |
tree | a2dad53d32547ef01b36fd9296dc4f68e52292f8 /src/mesa/shader/slang/slang_compile.c | |
parent | 5e75db12d7b17f0295e8099bd357220df97d5013 (diff) |
Implement vertex attribute binding.
Users can set explicit binding with glBindAttribLocation(), otherwise the
linker will allocate generic attribute slots.
Diffstat (limited to 'src/mesa/shader/slang/slang_compile.c')
-rw-r--r-- | src/mesa/shader/slang/slang_compile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c index efb23255f94..314c32f7077 100644 --- a/src/mesa/shader/slang/slang_compile.c +++ b/src/mesa/shader/slang/slang_compile.c @@ -2260,6 +2260,7 @@ _slang_compile(GLcontext *ctx, struct gl_shader *shader) shader->Programs[0]->Parameters = _mesa_new_parameter_list(); shader->Programs[0]->Varying = _mesa_new_parameter_list(); + shader->Programs[0]->Attributes = _mesa_new_parameter_list(); } slang_info_log_construct(&info_log); |