mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 12:59:07 -06:00
Don't keep the majority of textures in RAM if they are not needed, further reducing the memory footprint
This commit is contained in:
@@ -488,6 +488,7 @@ void RenderableSphere::loadTexture() {
|
||||
);
|
||||
texture->uploadTexture();
|
||||
texture->setFilter(ghoul::opengl::Texture::FilterMode::LinearMipMap);
|
||||
texture->purgeFromRAM();
|
||||
_texture = std::move(texture);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user