Fix placefile image/icon vertex count calculation

This commit is contained in:
Dan Paulat 2023-09-09 22:39:47 -05:00
parent 2f41993d7b
commit 477d9309a9
2 changed files with 4 additions and 4 deletions

View file

@ -675,8 +675,8 @@ void PlacefileIcons::Impl::Update(bool textureAtlasChanged)
currentIntegerBuffer_.data(), currentIntegerBuffer_.data(),
GL_DYNAMIC_DRAW); GL_DYNAMIC_DRAW);
numVertices_ = static_cast<GLsizei>(currentIconBuffer_.size() / numVertices_ =
kVerticesPerRectangle); static_cast<GLsizei>(currentIconBuffer_.size() / kPointsPerVertex);
} }
dirty_ = false; dirty_ = false;

View file

@ -472,8 +472,8 @@ void PlacefileImages::Impl::Update(bool textureAtlasChanged)
currentIntegerBuffer_.data(), currentIntegerBuffer_.data(),
GL_DYNAMIC_DRAW); GL_DYNAMIC_DRAW);
numVertices_ = static_cast<GLsizei>(currentImageBuffer_.size() / numVertices_ =
kVerticesPerRectangle); static_cast<GLsizei>(currentImageBuffer_.size() / kPointsPerVertex);
} }
dirty_ = false; dirty_ = false;