kwin: Don't enable/disable texturing when using shaders

This state has no affect on the programmable pipeline.
This commit is contained in:
Fredrik Höglund 2012-09-13 22:49:53 +02:00
parent faf27f481e
commit f21ef431c4

View file

@ -240,7 +240,8 @@ void GLTexture::discard()
void GLTexturePrivate::bind()
{
#ifndef KWIN_HAVE_OPENGLES
glEnable(m_target);
if (!ShaderManager::instance()->isValid())
glEnable(m_target);
#endif
glBindTexture(m_target, m_texture);
}
@ -287,7 +288,8 @@ void GLTexturePrivate::unbind()
{
glBindTexture(m_target, 0);
#ifndef KWIN_HAVE_OPENGLES
glDisable(m_target);
if (!ShaderManager::instance()->isValid())
glDisable(m_target);
#endif
}