mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-25 17:21:54 -07:00
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:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user