diff options
| author | Tom Englund <tomenglund26@gmail.com> | 2025-07-07 13:33:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-07 13:33:22 +0200 |
| commit | a16d0c76a6c072fe6a5e668ffe6922949dbc240e (patch) | |
| tree | 0f086217cfe9e35611f84d8bbe8c71d5ffe76f11 /src/render/Texture.cpp | |
| parent | 6a5f4f5954a64bac718e3938f062d045256e7aeb (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.cpp | 1 |
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() { |
