We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f414538 commit f4e4cbfCopy full SHA for f4e4cbf
src/skin.cpp
@@ -60,6 +60,10 @@ Texture Skin::createAndPaintTexture(int width, int height)
60
m_textures.push_back(texture);
61
texture->setMinificationFilter(QOpenGLTexture::Nearest);
62
texture->setMagnificationFilter(QOpenGLTexture::Nearest);
63
+ texture->bind();
64
+ glF.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
65
+ glF.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
66
+ texture->release();
67
68
return Texture(texture->textureId(), width, height);
69
}
0 commit comments