1
0
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:
Thomas Harte
2019-01-30 18:20:42 -05:00
parent 5002290428
commit 122857e5b5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
}