From 1d4672bd92fb20c63806ef4bf0179a1aeecff16b Mon Sep 17 00:00:00 2001 From: Gregor Parzefall <82708541+grorp@users.noreply.github.com> Date: Thu, 24 Aug 2023 12:25:41 +0200 Subject: [PATCH] Remove the now unused SMaterialLayer::setFiltersMinetest method --- include/SMaterialLayer.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/SMaterialLayer.h b/include/SMaterialLayer.h index 20391d0..a940072 100644 --- a/include/SMaterialLayer.h +++ b/include/SMaterialLayer.h @@ -232,16 +232,6 @@ namespace video if the value is positive. */ s8 LODBias; - //! Sets the MinFilter, MagFilter and AnisotropicFilter properties according - //! to the three relevant boolean values found in the Minetest settings. - /** The value of `trilinear` takes precedence over the value of `bilinear`. */ - void setFiltersMinetest(bool bilinear, bool trilinear, bool anisotropic) { - MinFilter = trilinear ? ETMINF_LINEAR_MIPMAP_LINEAR : - (bilinear ? ETMINF_LINEAR_MIPMAP_NEAREST : ETMINF_NEAREST_MIPMAP_NEAREST); - MagFilter = (trilinear || bilinear) ? ETMAGF_LINEAR : ETMAGF_NEAREST; - AnisotropicFilter = anisotropic ? 0xFF : 0; - } - private: friend class SMaterial;