mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-28 21:41:11 -04: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…
x
Reference in New Issue
Block a user