Skip to content

Commit

Permalink
fix(qml): fix ugly texture by adding filtraction and anisotropy level
Browse files Browse the repository at this point in the history
  • Loading branch information
aa-bamboo committed May 4, 2022
1 parent e9b1023 commit a2b7a69
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/qml/rendering/videomaterialshader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@ void VideoMaterialShader::updateSampledImage(
if (binding == 1) {
QSGTexture *t = mat->getTexture();

// t->setAnisotropyLevel(QSGTexture::Anisotropy2x);
// t->setFiltering(QSGTexture::Linear);
// t->setHorizontalWrapMode(QSGTexture::Repeat);
// t->setVerticalWrapMode(QSGTexture::Repeat);
t->setAnisotropyLevel(QSGTexture::Anisotropy2x);
t->setFiltering(QSGTexture::Linear);

t->commitTextureOperations(state.rhi(), state.resourceUpdateBatch());

Expand Down

0 comments on commit a2b7a69

Please sign in to comment.