GPUDevice: Fix crash when using recycled targets

This commit is contained in:
Stenzek 2023-12-21 23:40:03 +10:00
parent 8fe6ef1fa8
commit 9ec3266f02
No known key found for this signature in database

View file

@ -826,7 +826,7 @@ std::unique_ptr<GPUTexture> GPUDevice::FetchTexture(u32 width, u32 height, u32 l
if (!data || it->texture->Update(0, 0, width, height, data, data_stride, 0, 0))
{
ret = std::move(it->texture);
m_texture_pool.erase(it);
pool.erase(it);
return ret;
}
else