erase from delayed when deleteHandle()

develop
shevernitskiy 2023-09-02 11:05:28 +03:00
parent 033a849de2
commit 770402a292
1 changed files with 3 additions and 0 deletions

@ -273,6 +273,9 @@ void Textures::deleteHandle(TexposHandle handle) {
g_handle_to_reserved_texpos.erase(handle);
if (g_handle_to_texpos.contains(handle))
g_handle_to_texpos.erase(handle);
if (auto it = std::find(g_delayed_regs.begin(), g_delayed_regs.end(), handle);
it != g_delayed_regs.end())
g_delayed_regs.erase(it);
if (g_handle_to_surface.contains(handle)) {
auto surface = g_handle_to_surface[handle];
while (surface->refcount)