Fix shadow rendering calculations

BUG: 365097

Reviewers: #plasma

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D2100
This commit is contained in:
David Edmundson 2016-07-06 13:08:58 +01:00
parent ec764e32b6
commit 62d09fad12

View file

@ -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());