fix: address potential GPU resource leaks

This commit is contained in:
2026-03-13 16:52:52 +08:00
parent 98967275ff
commit 77c7511455
4 changed files with 15 additions and 14 deletions

View File

@@ -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{

View File

@@ -8,7 +8,9 @@ Player::Player(const World& world, const std::string& name) :
{
}
Player::~Player() {
}
const glm::vec3& Player::get_front() const {
return m_front;
}