From d39c190c400ba39f289b068fb1b76428a72da8f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Fri, 10 Feb 2012 16:49:01 +0100 Subject: [PATCH] fix NPOT + raster decoration BUG: 282882 --- scene_opengl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 9539f187ab..bd3e79bfbf 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -712,8 +712,8 @@ void SceneOpenGL::Window::makeDecorationArrays(const WindowQuadList& quads, cons QVector texcoords; vertices.reserve(quads.count() * 6 * 2); texcoords.reserve(quads.count() * 6 * 2); - float width = tex->size().width(); - float height = tex->size().height(); + float width = rect.width(); + float height = rect.height(); #ifndef KWIN_HAVE_OPENGLES if (tex->target() == GL_TEXTURE_RECTANGLE_ARB) { width = 1.0;