Proper filter setting
This commit is contained in:
@@ -387,8 +387,7 @@ void ImageWidget::initializeGL()
|
|||||||
m_thumbnailTexture->setLayers(1);
|
m_thumbnailTexture->setLayers(1);
|
||||||
m_thumbnailTexture->allocateStorage();
|
m_thumbnailTexture->allocateStorage();
|
||||||
m_thumbnailTexture->bind(1);
|
m_thumbnailTexture->bind(1);
|
||||||
m_thumbnailTexture->setMinificationFilter(QOpenGLTexture::Linear);
|
m_thumbnailTexture->setMinMagFilters(QOpenGLTexture::Linear, QOpenGLTexture::Linear);
|
||||||
m_thumbnailTexture->setMinificationFilter(QOpenGLTexture::Linear);
|
|
||||||
|
|
||||||
m_transferOptions = std::unique_ptr<QOpenGLPixelTransferOptions>(new QOpenGLPixelTransferOptions);
|
m_transferOptions = std::unique_ptr<QOpenGLPixelTransferOptions>(new QOpenGLPixelTransferOptions);
|
||||||
m_transferOptions->setAlignment(1);
|
m_transferOptions->setAlignment(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user