mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-17 01:29:19 +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:
1 file changed
+7
@@ -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