always pass the parameters and verify that they're correct

This commit is contained in:
Konstantin Käfer
2014-02-05 18:46:23 +01:00
parent e94cb1b00b
commit eabd99d8f6
4 changed files with 40 additions and 64 deletions

View File

@@ -270,12 +270,8 @@ size_t LineBucket::size() const {
}
void LineBucket::bind(LineShader& shader) {
if (!array) {
char *vertex_index = BUFFER_OFFSET(start * 4 * sizeof(int16_t));
array.setup(shader, *buffer, vertex_index);
} else {
array.bind();
}
char *vertex_index = BUFFER_OFFSET(start * 4 * sizeof(int16_t));
array.bind(shader, *buffer, vertex_index);
}
void LineBucket::drawLines() {