mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:50:05 +00:00
Update placefile icon data outside of render loop, polygon and text cleanup
This commit is contained in:
parent
b159540215
commit
e021484bfb
5 changed files with 212 additions and 178 deletions
|
|
@ -234,6 +234,8 @@ void PlacefilePolygons::Deinitialize()
|
|||
gl.glDeleteVertexArrays(1, &p->vao_);
|
||||
gl.glDeleteBuffers(2, p->vbo_.data());
|
||||
|
||||
std::unique_lock lock {p->bufferMutex_};
|
||||
|
||||
// Clear the current buffers
|
||||
p->currentBuffer_.clear();
|
||||
p->currentThresholdBuffer_.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue