In the shader used by GeoLines, aDisplayed is an integer, not a float

This commit is contained in:
Dan Paulat 2024-12-25 21:34:08 -06:00
parent bef8628bb6
commit 9a171464ff

View file

@ -230,12 +230,11 @@ void GeoLines::Initialize()
gl.glEnableVertexAttribArray(6); gl.glEnableVertexAttribArray(6);
// aDisplayed // aDisplayed
gl.glVertexAttribPointer(7, gl.glVertexAttribIPointer(7,
1, 1,
GL_INT, GL_INT,
GL_FALSE, kIntegersPerVertex_ * sizeof(GLint),
kIntegersPerVertex_ * sizeof(GLint), reinterpret_cast<void*>(3 * sizeof(GLint)));
reinterpret_cast<void*>(3 * sizeof(float)));
gl.glEnableVertexAttribArray(7); gl.glEnableVertexAttribArray(7);
p->dirty_ = true; p->dirty_ = true;