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:
baldurk
2018-06-21 14:21:45 +01:00
parent f1318b0961
commit 7958107bdc
+7
View File
@@ -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()