From a16d0c76a6c072fe6a5e668ffe6922949dbc240e Mon Sep 17 00:00:00 2001 From: Tom Englund Date: Mon, 7 Jul 2025 13:33:22 +0200 Subject: [PATCH] texture: zero out the cached states in destroy (#10954) if destroyTexture is called outside of the texture destructor we need to empty out the cached states. --- src/render/Texture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/render/Texture.cpp b/src/render/Texture.cpp index 9b349efb..a6e29eaf 100644 --- a/src/render/Texture.cpp +++ b/src/render/Texture.cpp @@ -156,6 +156,7 @@ void CTexture::destroyTexture() { if (m_eglImage) g_pHyprOpenGL->m_proc.eglDestroyImageKHR(g_pHyprOpenGL->m_eglDisplay, m_eglImage); m_eglImage = nullptr; + m_cachedStates.fill(std::nullopt); } void CTexture::allocate() {