mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-24 05:18:36 +00:00
Improves automatic index generation, to allow for matrices implicitly taking up to four slots.
This commit is contained in:
@@ -53,7 +53,7 @@ Shader::Shader(const std::string &vertex_shader, const std::string &fragment_sha
|
||||
GLuint index = 0;
|
||||
for(const auto &name: binding_names) {
|
||||
bindings.emplace_back(name, index);
|
||||
++index;
|
||||
index += 4;
|
||||
}
|
||||
init(vertex_shader, fragment_shader, bindings);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user