mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 22:05:38 +00:00
GPUDevice: Fix crash when using recycled targets
This commit is contained in:
parent
8fe6ef1fa8
commit
9ec3266f02
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue