diff --git a/scene_opengl.cpp b/scene_opengl.cpp index ca056680c8..5464e318b5 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -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(m_shadow)->shadowTexture(); if (!texture) { return;