mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-08 04:25:37 +00:00
GPUDevice: Allow this-frame pooled textures when not uploading data
It won't break the render pass.
This commit is contained in:
parent
a08acdb93a
commit
f51dda3e66
@ -1028,7 +1028,7 @@ std::unique_ptr<GPUTexture> GPUDevice::FetchTexture(u32 width, u32 height, u32 l
|
|||||||
|
|
||||||
TexturePool::iterator it;
|
TexturePool::iterator it;
|
||||||
|
|
||||||
if (is_texture && m_features.prefer_unused_textures)
|
if (is_texture && data && m_features.prefer_unused_textures)
|
||||||
{
|
{
|
||||||
// Try to find a texture that wasn't used this frame first.
|
// Try to find a texture that wasn't used this frame first.
|
||||||
for (it = m_texture_pool.begin(); it != m_texture_pool.end(); ++it)
|
for (it = m_texture_pool.begin(); it != m_texture_pool.end(); ++it)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user