mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-17 16:17:02 +08:00
fix: address potential GPU resource leaks
This commit is contained in:
@@ -8,7 +8,7 @@ Chunk::Chunk(World& world, ChunkPos chunk_pos) :
|
||||
}
|
||||
|
||||
Chunk::~Chunk() {
|
||||
|
||||
glDeleteBuffers(1, &m_vbo);
|
||||
}
|
||||
|
||||
const std::vector<uint8_t>& Chunk::get_chunk_blocks() const{
|
||||
|
||||
Reference in New Issue
Block a user