fix stride to avoid bogus points at 0/0

This commit is contained in:
Konstantin Käfer
2014-02-19 14:43:57 +01:00
parent 828d8ba26f
commit 420e534306

View File

@@ -34,7 +34,7 @@ PointShader::PointShader()
void PointShader::bind(char *offset) {
glEnableVertexAttribArray(a_pos);
glVertexAttribPointer(a_pos, 2, GL_SHORT, false, 8, offset);
glVertexAttribPointer(a_pos, 2, GL_SHORT, false, 0, offset);
}
void PointShader::setColor(const std::array<float, 4>& new_color) {