This commit is contained in:
wheremyfoodat 2023-07-07 12:19:04 +03:00
parent 255947b2fc
commit e67b98f990
2 changed files with 40 additions and 32 deletions

View file

@ -33,11 +33,11 @@ void Texture::setNewConfig(u32 cfg) {
}
void Texture::free() {
valid = false;
valid = false;
if (texture.exists()){
glDeleteTextures(1, &texture.m_handle);
}
if (texture.exists()) {
texture.free();
}
}
u64 Texture::sizeInBytes() {