Cleaning up shutdown
This commit is contained in:
@@ -195,8 +195,7 @@ HydraID HydraTextureBufferManager::CreateTexture(std::string texture_name,
|
||||
glCreateTextures(GL_TEXTURE_2D, 1, &gl_tex_id);
|
||||
glBindTexture(GL_TEXTURE_2D, gl_tex_id);
|
||||
|
||||
glTextureStorage2D(gl_tex_id,1+ mip_levels, internal_format, width, height);
|
||||
|
||||
glTextureStorage2D(gl_tex_id,1+ mip_levels, internal_format, width, height);
|
||||
if (data != nullptr)
|
||||
{
|
||||
glTextureSubImage2D(
|
||||
@@ -264,4 +263,5 @@ void HydraTextureBufferManager::DeleteTexture(HydraID texture_id)
|
||||
{
|
||||
UnbindTexture(m_bindless_texture_ids[texture_id]);
|
||||
}
|
||||
glDeleteTextures(1, &m_textures[texture_id].gl_tex_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user