Fix shadow rendering calculations
BUG: 365097 Reviewers: #plasma Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D2100
This commit is contained in:
parent
ec764e32b6
commit
62d09fad12
1 changed files with 3 additions and 2 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in a new issue