Cache bug fix

This commit is contained in:
Jack Andersen 2015-11-15 18:42:32 -10:00
parent 6ae4f6ed11
commit 6b6617303b
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ bool ShaderCacheManager::addData(const ShaderCachedData& data)
if (!targetOffset) if (!targetOffset)
{ {
/* New index entry at end */ /* New index entry at end */
idxFw.seek(16, Athena::Begin); idxFw.seek(24, Athena::Begin);
idxFw.writeUint64Big(m_entries.size() + 1); idxFw.writeUint64Big(m_entries.size() + 1);
idxFw.seek(m_entries.size() * 32 + 32, Athena::Begin); idxFw.seek(m_entries.size() * 32 + 32, Athena::Begin);
datFw.seek(0, Athena::End); datFw.seek(0, Athena::End);