Don't render shadows if there are no quads
This commit is contained in:
parent
a9dcadfd33
commit
bb8b92f93d
1 changed files with 3 additions and 0 deletions
|
@ -665,6 +665,9 @@ void SceneOpenGL::Window::paintShadow(const QRegion ®ion, const WindowPaintDa
|
|||
quads.append(data.quads.select(WindowQuadShadowBottom));
|
||||
quads.append(data.quads.select(WindowQuadShadowBottomLeft));
|
||||
quads.append(data.quads.select(WindowQuadShadowLeft));
|
||||
if (quads.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
GLTexture *texture = static_cast<SceneOpenGLShadow*>(m_shadow)->shadowTexture();
|
||||
if (!texture) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue