From f7e4e1874fa1966af7777bb2dd46c0400b2dfbe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Sat, 11 Jun 2022 14:10:07 +0200 Subject: [PATCH] Proper filter setting --- imagescrollareagl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/imagescrollareagl.cpp b/imagescrollareagl.cpp index 4ac1f50..5c28e74 100644 --- a/imagescrollareagl.cpp +++ b/imagescrollareagl.cpp @@ -387,8 +387,7 @@ void ImageWidget::initializeGL() m_thumbnailTexture->setLayers(1); m_thumbnailTexture->allocateStorage(); m_thumbnailTexture->bind(1); - m_thumbnailTexture->setMinificationFilter(QOpenGLTexture::Linear); - m_thumbnailTexture->setMinificationFilter(QOpenGLTexture::Linear); + m_thumbnailTexture->setMinMagFilters(QOpenGLTexture::Linear, QOpenGLTexture::Linear); m_transferOptions = std::unique_ptr(new QOpenGLPixelTransferOptions); m_transferOptions->setAlignment(1);