Skip to content

Commit d4d2980

Browse files
committed
Use nearest neighbor by default
1 parent 4ad39b7 commit d4d2980

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/skin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ Texture Skin::createAndPaintTexture(int width, int height)
5858
// Create final texture from the image
5959
auto texture = std::make_shared<QOpenGLTexture>(image);
6060
m_textures.push_back(texture);
61-
texture->setMinificationFilter(QOpenGLTexture::LinearMipMapLinear);
62-
texture->setMagnificationFilter(QOpenGLTexture::Linear);
61+
texture->setMinificationFilter(QOpenGLTexture::Nearest);
62+
texture->setMagnificationFilter(QOpenGLTexture::Nearest);
6363

6464
return Texture(texture->textureId(), width, height);
6565
}

test/stamp.png

-2.67 KB
Loading

test/stamp_hq.png

-134 KB
Loading

0 commit comments

Comments
 (0)