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