From 6b6617303b102c6e0501236fb6d28377f2d48a16 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 15 Nov 2015 18:42:32 -1000 Subject: [PATCH] Cache bug fix --- hecl/lib/Runtime/ShaderCacheManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hecl/lib/Runtime/ShaderCacheManager.cpp b/hecl/lib/Runtime/ShaderCacheManager.cpp index b2be8845a..c593c0c47 100644 --- a/hecl/lib/Runtime/ShaderCacheManager.cpp +++ b/hecl/lib/Runtime/ShaderCacheManager.cpp @@ -291,7 +291,7 @@ bool ShaderCacheManager::addData(const ShaderCachedData& data) if (!targetOffset) { /* New index entry at end */ - idxFw.seek(16, Athena::Begin); + idxFw.seek(24, Athena::Begin); idxFw.writeUint64Big(m_entries.size() + 1); idxFw.seek(m_entries.size() * 32 + 32, Athena::Begin); datFw.seek(0, Athena::End);