aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-08-06 13:57:43 +0200
committerVaxry <[email protected]>2024-08-06 13:57:43 +0200
commit2cfc6722fdbc93fd0c5987eeac0d4b96cd0128a7 (patch)
tree76fe2717a47521ecec002e5892c07b1637b603ae
parent84093c5cb27a90dbcdd2b7c5514f58bb37f807c3 (diff)
downloadHyprland-2cfc6722fdbc93fd0c5987eeac0d4b96cd0128a7.tar.gz
Hyprland-2cfc6722fdbc93fd0c5987eeac0d4b96cd0128a7.zip
guard rb?
-rw-r--r--src/render/Renderer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 362d4e3d..9befb51f 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -2654,7 +2654,8 @@ void CHyprRenderer::endRender() {
PMONITOR->commitSeq++;
auto cleanup = CScopeGuard([this]() {
- m_pCurrentRenderbuffer->unbind();
+ if (m_pCurrentRenderbuffer)
+ m_pCurrentRenderbuffer->unbind();
m_pCurrentRenderbuffer = nullptr;
m_pCurrentBuffer = nullptr;
});