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:
parent
6a5f4f5954
commit
a16d0c76a6
1 changed files with 1 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue