Don't keep the majority of textures in RAM if they are not needed, further reducing the memory footprint

This commit is contained in:
Alexander Bock
2020-08-18 10:48:56 +02:00
parent b49154b83e
commit 2b6d95057b
5 changed files with 5 additions and 6 deletions

View File

@@ -488,6 +488,7 @@ void RenderableSphere::loadTexture() {
);
texture->uploadTexture();
texture->setFilter(ghoul::opengl::Texture::FilterMode::LinearMipMap);
texture->purgeFromRAM();
_texture = std::move(texture);
}
}