[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.icc-effect-5.14.5
parent
84b73ab2b3
commit
ef7f7b0179
|
@ -478,13 +478,7 @@ void GLTexture::render(QRegion region, const QRect& rect, bool hardwareClipping)
|
||||||
|
|
||||||
d->m_vbo->setData(4, 2, verts, texcoords);
|
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);
|
d->m_vbo->render(region, GL_TRIANGLE_STRIP, hardwareClipping);
|
||||||
shader->setUniform(GLShader::WindowTransformation, QMatrix4x4());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GLuint GLTexture::texture() const
|
GLuint GLTexture::texture() const
|
||||||
|
|
Loading…
Reference in New Issue