mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-17 03:15:39 +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))
|
if (!data || it->texture->Update(0, 0, width, height, data, data_stride, 0, 0))
|
||||||
{
|
{
|
||||||
ret = std::move(it->texture);
|
ret = std::move(it->texture);
|
||||||
m_texture_pool.erase(it);
|
pool.erase(it);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue