mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Clear GL array texture data cache in ReplayLog
* Otherwise the array data could be stale if we request the same array's data over again.
This commit is contained in:
@@ -87,6 +87,13 @@ void GLReplay::ReplayLog(uint32_t endEventID, ReplayLogType replayType)
|
||||
{
|
||||
MakeCurrentReplayContext(&m_ReplayCtx);
|
||||
m_pDriver->ReplayLog(0, endEventID, replayType);
|
||||
|
||||
// clear array cache
|
||||
for(size_t i = 0; i < ARRAY_COUNT(m_GetTexturePrevData); i++)
|
||||
{
|
||||
delete[] m_GetTexturePrevData[i];
|
||||
m_GetTexturePrevData[i] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
const SDFile &GLReplay::GetStructuredFile()
|
||||
|
||||
Reference in New Issue
Block a user