summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2024-07-27 13:03:43 +0200
committervaxerski <vaxry@vaxry.net>2024-07-27 13:03:43 +0200
commit76610d9fb0ba5a2d495a963773c38b717d76776f (patch)
treed109edb0916962f64199839d435603bea8d96911 /src/render/OpenGL.cpp
parent57371b93a058d17affb0ca92f13b8d40582b3ea0 (diff)
opengl: destroy cairo image surface after use
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r--src/render/OpenGL.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index 5e52403d..39f6614e 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -2610,6 +2610,8 @@ void CHyprOpenGLImpl::createBackgroundTexture(const std::string& texPath) {
}
#endif
glTexImage2D(GL_TEXTURE_2D, 0, glIFormat, m_pBackgroundTexture->m_vSize.x, m_pBackgroundTexture->m_vSize.y, 0, glFormat, glType, DATA);
+
+ cairo_surface_destroy(CAIROSURFACE);
}
void CHyprOpenGLImpl::createBGTextureForMonitor(CMonitor* pMonitor) {