Skip to content

Commit

Permalink
Use nearest neighbor by default
Browse files Browse the repository at this point in the history
  • Loading branch information
adazem009 committed Oct 31, 2024
1 parent 4ad39b7 commit d4d2980
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/skin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ Texture Skin::createAndPaintTexture(int width, int height)
// Create final texture from the image
auto texture = std::make_shared<QOpenGLTexture>(image);
m_textures.push_back(texture);
texture->setMinificationFilter(QOpenGLTexture::LinearMipMapLinear);
texture->setMagnificationFilter(QOpenGLTexture::Linear);
texture->setMinificationFilter(QOpenGLTexture::Nearest);
texture->setMagnificationFilter(QOpenGLTexture::Nearest);

return Texture(texture->textureId(), width, height);
}
Binary file modified test/stamp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/stamp_hq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d4d2980

Please sign in to comment.