Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Remove the now unused SMaterialLayer::setFiltersMinetest method
Browse files Browse the repository at this point in the history
  • Loading branch information
grorp authored Aug 24, 2023
1 parent ef3bab6 commit 65dfc49
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions include/SMaterialLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 65dfc49

Please sign in to comment.