diff options
author | vaxerski <[email protected]> | 2024-07-27 13:03:43 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2024-07-27 13:03:43 +0200 |
commit | 76610d9fb0ba5a2d495a963773c38b717d76776f (patch) | |
tree | d109edb0916962f64199839d435603bea8d96911 | |
parent | 57371b93a058d17affb0ca92f13b8d40582b3ea0 (diff) | |
download | Hyprland-76610d9fb0ba5a2d495a963773c38b717d76776f.tar.gz Hyprland-76610d9fb0ba5a2d495a963773c38b717d76776f.zip |
opengl: destroy cairo image surface after use
-rw-r--r-- | src/render/OpenGL.cpp | 2 |
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) { |