mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Skip listing buffers in GL that aren't from the capture itself
This commit is contained in:
@@ -144,7 +144,13 @@ vector<ResourceId> GLReplay::GetBuffers()
|
||||
vector<ResourceId> ret;
|
||||
|
||||
for(auto it = m_pDriver->m_Buffers.begin(); it != m_pDriver->m_Buffers.end(); ++it)
|
||||
{
|
||||
// skip buffers that aren't from the log
|
||||
if(m_pDriver->GetResourceManager()->GetOriginalID(it->first) == it->first)
|
||||
continue;
|
||||
|
||||
ret.push_back(it->first);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user