Skip to content

Commit

Permalink
Main: GpuProgramManager - bump Microcode cache version
Browse files Browse the repository at this point in the history
as we changed the disk format for D3D11 in 14.2
  • Loading branch information
paroj committed Mar 5, 2024
1 parent a248176 commit 3f3a4be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions OgreMain/src/OgreGpuProgramManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ namespace {
}

StreamSerialiser serialiser(stream);
serialiser.writeChunkBegin(CACHE_CHUNK_ID, 2);
serialiser.writeChunkBegin(CACHE_CHUNK_ID, 3);

// write the size of the array
uint32 sizeOfArray = static_cast<uint32>(mMicrocodeCache.size());
Expand Down Expand Up @@ -391,9 +391,10 @@ namespace {
return;
}

if(chunk->id != CACHE_CHUNK_ID || chunk->version != 2)
if(chunk->id != CACHE_CHUNK_ID || chunk->version != 3)
{
LogManager::getSingleton().logWarning("Invalid Microcode Cache");
serialiser.readChunkEnd(CACHE_CHUNK_ID);
return;
}
// write the size of the array
Expand Down

0 comments on commit 3f3a4be

Please sign in to comment.