kwin: Reset the dirty flags in GLTexture
m_wrapModeChanged and m_filterChanged were never set to false, causing the sampler parameters to be set every time a texture was bound.
This commit is contained in:
parent
e1c01888c6
commit
2fc2004119
1 changed files with 2 additions and 0 deletions
|
@ -336,10 +336,12 @@ void GLTexture::bind()
|
|||
glTexParameteri(d->m_target, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
|
||||
glTexParameteri(d->m_target, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
|
||||
}
|
||||
d->m_filterChanged = false;
|
||||
}
|
||||
if (d->m_wrapModeChanged) {
|
||||
glTexParameteri(d->m_target, GL_TEXTURE_WRAP_S, d->m_wrapMode);
|
||||
glTexParameteri(d->m_target, GL_TEXTURE_WRAP_T, d->m_wrapMode);
|
||||
d->m_wrapModeChanged = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue