From 477d9309a9e8ab1a3218f43c9e710632c1a039ef Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Sat, 9 Sep 2023 22:39:47 -0500 Subject: [PATCH] Fix placefile image/icon vertex count calculation --- scwx-qt/source/scwx/qt/gl/draw/placefile_icons.cpp | 4 ++-- scwx-qt/source/scwx/qt/gl/draw/placefile_images.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scwx-qt/source/scwx/qt/gl/draw/placefile_icons.cpp b/scwx-qt/source/scwx/qt/gl/draw/placefile_icons.cpp index 784aa6b0..84ffb4b2 100644 --- a/scwx-qt/source/scwx/qt/gl/draw/placefile_icons.cpp +++ b/scwx-qt/source/scwx/qt/gl/draw/placefile_icons.cpp @@ -675,8 +675,8 @@ void PlacefileIcons::Impl::Update(bool textureAtlasChanged) currentIntegerBuffer_.data(), GL_DYNAMIC_DRAW); - numVertices_ = static_cast(currentIconBuffer_.size() / - kVerticesPerRectangle); + numVertices_ = + static_cast(currentIconBuffer_.size() / kPointsPerVertex); } dirty_ = false; diff --git a/scwx-qt/source/scwx/qt/gl/draw/placefile_images.cpp b/scwx-qt/source/scwx/qt/gl/draw/placefile_images.cpp index f7ba1737..3a5809c9 100644 --- a/scwx-qt/source/scwx/qt/gl/draw/placefile_images.cpp +++ b/scwx-qt/source/scwx/qt/gl/draw/placefile_images.cpp @@ -472,8 +472,8 @@ void PlacefileImages::Impl::Update(bool textureAtlasChanged) currentIntegerBuffer_.data(), GL_DYNAMIC_DRAW); - numVertices_ = static_cast(currentImageBuffer_.size() / - kVerticesPerRectangle); + numVertices_ = + static_cast(currentImageBuffer_.size() / kPointsPerVertex); } dirty_ = false;