From 62d09fad123d9aab5afcff0f27d109ef7c6c18ba Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 6 Jul 2016 13:08:58 +0100 Subject: [PATCH] Fix shadow rendering calculations BUG: 365097 Reviewers: #plasma Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D2100 --- scene_opengl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 239a585cc5..7d81eab213 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -2280,7 +2280,7 @@ void SceneOpenGLShadow::buildQuads() const int width = qMax(topLeft.width(), bottomLeft.width()) + qMax(top.width(), bottom.width()) + qMax(topRight.width(), bottomRight.width()); - const int height = qMax(topLeft.height(), bottomLeft.height()) + + const int height = qMax(topLeft.height(), topRight.height()) + qMax(left.height(), right.height()) + qMax(bottomLeft.height(), bottomRight.height()); @@ -2387,7 +2387,8 @@ bool SceneOpenGLShadow::prepareBackend() const int width = qMax(topLeft.width(), bottomLeft.width()) + qMax(top.width(), bottom.width()) + qMax(topRight.width(), bottomRight.width()); - const int height = qMax(topLeft.height(), bottomLeft.height()) + + + const int height = qMax(topRight.height(), topLeft.height()) + qMax(left.height(), right.height()) + qMax(bottomLeft.height(), bottomRight.height());