fix NPOT + raster decoration
BUG: 282882
This commit is contained in:
parent
a227847efc
commit
d39c190c40
1 changed files with 2 additions and 2 deletions
|
@ -712,8 +712,8 @@ void SceneOpenGL::Window::makeDecorationArrays(const WindowQuadList& quads, cons
|
||||||
QVector<float> texcoords;
|
QVector<float> texcoords;
|
||||||
vertices.reserve(quads.count() * 6 * 2);
|
vertices.reserve(quads.count() * 6 * 2);
|
||||||
texcoords.reserve(quads.count() * 6 * 2);
|
texcoords.reserve(quads.count() * 6 * 2);
|
||||||
float width = tex->size().width();
|
float width = rect.width();
|
||||||
float height = tex->size().height();
|
float height = rect.height();
|
||||||
#ifndef KWIN_HAVE_OPENGLES
|
#ifndef KWIN_HAVE_OPENGLES
|
||||||
if (tex->target() == GL_TEXTURE_RECTANGLE_ARB) {
|
if (tex->target() == GL_TEXTURE_RECTANGLE_ARB) {
|
||||||
width = 1.0;
|
width = 1.0;
|
||||||
|
|
Loading…
Reference in a new issue