Skip to content

Commit

Permalink
Use QOpenGLTexture::ClampToEdge to fix darb border issue
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Sep 29, 2023
1 parent 5d8e1b7 commit 8602bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ QOpenGLTexture* createTexture(const QImage& image) {
QOpenGLTexture* pTexture = new QOpenGLTexture(image);
pTexture->setMinificationFilter(QOpenGLTexture::Linear);
pTexture->setMagnificationFilter(QOpenGLTexture::Linear);
pTexture->setWrapMode(QOpenGLTexture::ClampToBorder);
pTexture->setWrapMode(QOpenGLTexture::ClampToEdge);

return pTexture;
}
Expand Down

0 comments on commit 8602bab

Please sign in to comment.