diff --git a/modules/base/rendering/renderablemodel.cpp b/modules/base/rendering/renderablemodel.cpp index b4250a1238..957eae6e92 100644 --- a/modules/base/rendering/renderablemodel.cpp +++ b/modules/base/rendering/renderablemodel.cpp @@ -453,6 +453,7 @@ void RenderableModel::loadTexture() { ); _texture->uploadTexture(); _texture->setFilter(ghoul::opengl::Texture::FilterMode::AnisotropicMipMap); + _texture->purgeFromRAM(); } } } diff --git a/modules/base/rendering/renderablesphere.cpp b/modules/base/rendering/renderablesphere.cpp index d38c48c417..ae9a58ae92 100644 --- a/modules/base/rendering/renderablesphere.cpp +++ b/modules/base/rendering/renderablesphere.cpp @@ -488,6 +488,7 @@ void RenderableSphere::loadTexture() { ); texture->uploadTexture(); texture->setFilter(ghoul::opengl::Texture::FilterMode::LinearMipMap); + texture->purgeFromRAM(); _texture = std::move(texture); } } diff --git a/modules/base/rendering/screenspaceframebuffer.cpp b/modules/base/rendering/screenspaceframebuffer.cpp index dab0c44e2b..46f96989ab 100644 --- a/modules/base/rendering/screenspaceframebuffer.cpp +++ b/modules/base/rendering/screenspaceframebuffer.cpp @@ -180,6 +180,7 @@ void ScreenSpaceFramebuffer::createFramebuffer() { _texture->uploadTexture(); _texture->setFilter(ghoul::opengl::Texture::FilterMode::LinearMipMap); + _texture->purgeFromRAM(); _framebuffer->attachTexture(_texture.get(), GL_COLOR_ATTACHMENT0); _framebuffer->deactivate(); } diff --git a/modules/base/rendering/screenspaceimagelocal.cpp b/modules/base/rendering/screenspaceimagelocal.cpp index 7901089979..4239bb5b9a 100644 --- a/modules/base/rendering/screenspaceimagelocal.cpp +++ b/modules/base/rendering/screenspaceimagelocal.cpp @@ -132,10 +132,8 @@ void ScreenSpaceImageLocal::update() { glPixelStorei(GL_UNPACK_ALIGNMENT, 1); texture->uploadTexture(); - - // Textures of planets looks much smoother with AnisotropicMipMap rather than - // linear texture->setFilter(ghoul::opengl::Texture::FilterMode::LinearMipMap); + texture->purgeFromRAM(); _texture = std::move(texture); _objectSize = _texture->dimensions(); diff --git a/modules/base/rendering/screenspaceimageonline.cpp b/modules/base/rendering/screenspaceimageonline.cpp index e9f41f952f..10ad87dbde 100644 --- a/modules/base/rendering/screenspaceimageonline.cpp +++ b/modules/base/rendering/screenspaceimageonline.cpp @@ -142,10 +142,8 @@ void ScreenSpaceImageOnline::update() { glPixelStorei(GL_UNPACK_ALIGNMENT, 1); texture->uploadTexture(); - - // Textures of planets looks much smoother with AnisotropicMipMap rather - // than linear texture->setFilter(ghoul::opengl::Texture::FilterMode::LinearMipMap); + texture->purgeFromRAM(); _texture = std::move(texture); _objectSize = _texture->dimensions();