From ef7f7b01796121a0e4cae2b4a1c2f1603c7552b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 1 Dec 2015 13:36:20 +0100 Subject: [PATCH] [kwinglutils] Don't setup old shader API for rendering a texture Old shader API no longer in use, so we don't need to setup the texture rendering. --- libkwineffects/kwingltexture.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libkwineffects/kwingltexture.cpp b/libkwineffects/kwingltexture.cpp index 9413e7a650..0ecce612b6 100644 --- a/libkwineffects/kwingltexture.cpp +++ b/libkwineffects/kwingltexture.cpp @@ -478,13 +478,7 @@ void GLTexture::render(QRegion region, const QRect& rect, bool hardwareClipping) d->m_vbo->setData(4, 2, verts, texcoords); } - QMatrix4x4 translation; - translation.translate(rect.x(), rect.y()); - GLShader *shader = ShaderManager::instance()->getBoundShader(); - shader->setUniform(GLShader::Offset, QVector2D(rect.x(), rect.y())); - shader->setUniform(GLShader::WindowTransformation, translation); d->m_vbo->render(region, GL_TRIANGLE_STRIP, hardwareClipping); - shader->setUniform(GLShader::WindowTransformation, QMatrix4x4()); } GLuint GLTexture::texture() const