Skip to content

Commit

Permalink
Merge pull request #47 from hotstreams/bugfix/textureloader
Browse files Browse the repository at this point in the history
texture loader min filter fix
  • Loading branch information
hotstreams authored Dec 10, 2023
2 parents e035ac4 + 366b2f2 commit dfcad67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/limitless/loaders/texture_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,14 @@ void TextureLoader::setTextureParameters(Texture::Builder& builder, const Textur
switch (flags.filter) {
case TextureLoaderFlags::Filter::Linear:
builder.mag_filter(Texture::Filter::Linear);
builder.min_filter(Texture::Filter::Linear);
if (flags.mipmap) {
builder.min_filter(Texture::Filter::LinearMipmapLinear);
}
break;
case TextureLoaderFlags::Filter::Nearest:
builder.mag_filter(Texture::Filter::Nearest);
builder.min_filter(Texture::Filter::Nearest);
if (flags.mipmap) {
builder.min_filter(Texture::Filter::NearestMipmapNearest);
}
Expand Down

0 comments on commit dfcad67

Please sign in to comment.