From 2fc200411980b4b330a758878d083c80e601e9dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Thu, 13 Jun 2013 18:37:25 +0200 Subject: [PATCH] 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. --- libkwineffects/kwingltexture.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libkwineffects/kwingltexture.cpp b/libkwineffects/kwingltexture.cpp index 322cfa9766..f6082d88f8 100644 --- a/libkwineffects/kwingltexture.cpp +++ b/libkwineffects/kwingltexture.cpp @@ -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; } }