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.
This commit is contained in:
Tom Englund
2025-07-07 13:33:22 +02:00
committed by GitHub
parent 6a5f4f5954
commit a16d0c76a6

View File

@@ -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() {