mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 14:10:06 +00:00
Fix placefile image/icon vertex count calculation
This commit is contained in:
parent
2f41993d7b
commit
477d9309a9
2 changed files with 4 additions and 4 deletions
|
|
@ -675,8 +675,8 @@ void PlacefileIcons::Impl::Update(bool textureAtlasChanged)
|
|||
currentIntegerBuffer_.data(),
|
||||
GL_DYNAMIC_DRAW);
|
||||
|
||||
numVertices_ = static_cast<GLsizei>(currentIconBuffer_.size() /
|
||||
kVerticesPerRectangle);
|
||||
numVertices_ =
|
||||
static_cast<GLsizei>(currentIconBuffer_.size() / kPointsPerVertex);
|
||||
}
|
||||
|
||||
dirty_ = false;
|
||||
|
|
|
|||
|
|
@ -472,8 +472,8 @@ void PlacefileImages::Impl::Update(bool textureAtlasChanged)
|
|||
currentIntegerBuffer_.data(),
|
||||
GL_DYNAMIC_DRAW);
|
||||
|
||||
numVertices_ = static_cast<GLsizei>(currentImageBuffer_.size() /
|
||||
kVerticesPerRectangle);
|
||||
numVertices_ =
|
||||
static_cast<GLsizei>(currentImageBuffer_.size() / kPointsPerVertex);
|
||||
}
|
||||
|
||||
dirty_ = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue