diff options
author | Vaxry <[email protected]> | 2024-08-06 13:57:43 +0200 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-08-06 13:57:43 +0200 |
commit | 2cfc6722fdbc93fd0c5987eeac0d4b96cd0128a7 (patch) | |
tree | 76fe2717a47521ecec002e5892c07b1637b603ae | |
parent | 84093c5cb27a90dbcdd2b7c5514f58bb37f807c3 (diff) | |
download | Hyprland-2cfc6722fdbc93fd0c5987eeac0d4b96cd0128a7.tar.gz Hyprland-2cfc6722fdbc93fd0c5987eeac0d4b96cd0128a7.zip |
guard rb?
-rw-r--r-- | src/render/Renderer.cpp | 3 |
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; }); |