[plasma/kwin] src/scene: scene: mark the EGL context as failed when the VBO map fails
Vlad Zahorodnii <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 59df4a20ea8aac1f7c842ed3b0b7d93f6da69323 by Vlad Zahorodnii, on behalf of zhang shoucheng.
Committed on 17/08/2026 at 09:55.
Pushed by vladz into branch 'master'.
scene: mark the EGL context as failed when the VBO map fails
When mapping the streaming vertex buffer failed, the code called
EglContext::isFailed(), which is a read-only getter and does nothing,
defeating the intended recovery path. Call setFailed() instead so the
context is marked as broken and gets recreated by the compositor.
M +1 -1 src/scene/itemrenderer_opengl.cpp
https://invent.kde.org/plasma/kwin/-/commit/59df4a20ea8aac1f7c842ed3b0b7d93f6da69323
diff --git a/src/scene/itemrenderer_opengl.cpp b/src/scene/itemrenderer_opengl.cpp
index ea25369af62..996bc8bed17 100644
--- a/src/scene/itemrenderer_opengl.cpp
+++ b/src/scene/itemrenderer_opengl.cpp
@@ -417,7 +417,7 @@ bool ItemRendererOpenGL::renderItem(const RenderTarget &renderTarget, const Rend
const auto map = vbo->map<GLVertex2D>(totalVertexCount);
if (!map) {
- EglContext::currentContext()->isFailed();
+ EglContext::currentContext()->setFailed();
return true;
}