summaryrefslogtreecommitdiff
path: root/src/render/Texture.cpp
diff options
context:
space:
mode:
authorTom Englund <tomenglund26@gmail.com>2025-07-07 13:33:22 +0200
committerGitHub <noreply@github.com>2025-07-07 13:33:22 +0200
commita16d0c76a6c072fe6a5e668ffe6922949dbc240e (patch)
tree0f086217cfe9e35611f84d8bbe8c71d5ffe76f11 /src/render/Texture.cpp
parent6a5f4f5954a64bac718e3938f062d045256e7aeb (diff)
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.
Diffstat (limited to 'src/render/Texture.cpp')
-rw-r--r--src/render/Texture.cpp1
1 files changed, 1 insertions, 0 deletions
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() {