kwin: Check for an empty quad list in beginRenderWindow()

BUG: 320845
This commit is contained in:
Fredrik Höglund 2013-06-07 23:46:06 +02:00
parent b7423a45cd
commit 4a95f7f1f1

View file

@ -1062,6 +1062,9 @@ bool SceneOpenGL::Window::beginRenderWindow(int mask, const QRegion &region, Win
data.quads = quads;
}
if (data.quads.isEmpty())
return false;
if (!bindTexture() || !s_frameTexture) {
return false;
}