Skip to content

Commit

Permalink
In the shader used by GeoLines, aDisplayed is an integer, not a float
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulat committed Dec 26, 2024
1 parent bef8628 commit 9a17146
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions scwx-qt/source/scwx/qt/gl/draw/geo_lines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,11 @@ void GeoLines::Initialize()
gl.glEnableVertexAttribArray(6);

// aDisplayed
gl.glVertexAttribPointer(7,
1,
GL_INT,
GL_FALSE,
kIntegersPerVertex_ * sizeof(GLint),
reinterpret_cast<void*>(3 * sizeof(float)));
gl.glVertexAttribIPointer(7,
1,
GL_INT,
kIntegersPerVertex_ * sizeof(GLint),
reinterpret_cast<void*>(3 * sizeof(GLint)));
gl.glEnableVertexAttribArray(7);

p->dirty_ = true;
Expand Down

0 comments on commit 9a17146

Please sign in to comment.