From 9a171464ff23de26fab329b76b5afc7d85e7b03e Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Wed, 25 Dec 2024 21:34:08 -0600 Subject: [PATCH] In the shader used by GeoLines, aDisplayed is an integer, not a float --- scwx-qt/source/scwx/qt/gl/draw/geo_lines.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scwx-qt/source/scwx/qt/gl/draw/geo_lines.cpp b/scwx-qt/source/scwx/qt/gl/draw/geo_lines.cpp index d9f2c023..ef5ddba5 100644 --- a/scwx-qt/source/scwx/qt/gl/draw/geo_lines.cpp +++ b/scwx-qt/source/scwx/qt/gl/draw/geo_lines.cpp @@ -230,12 +230,11 @@ void GeoLines::Initialize() gl.glEnableVertexAttribArray(6); // aDisplayed - gl.glVertexAttribPointer(7, - 1, - GL_INT, - GL_FALSE, - kIntegersPerVertex_ * sizeof(GLint), - reinterpret_cast(3 * sizeof(float))); + gl.glVertexAttribIPointer(7, + 1, + GL_INT, + kIntegersPerVertex_ * sizeof(GLint), + reinterpret_cast(3 * sizeof(GLint))); gl.glEnableVertexAttribArray(7); p->dirty_ = true;