Skip to content

Commit 3f3a4be

Browse files
committed
Main: GpuProgramManager - bump Microcode cache version
as we changed the disk format for D3D11 in 14.2
1 parent a248176 commit 3f3a4be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

OgreMain/src/OgreGpuProgramManager.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ namespace {
351351
}
352352

353353
StreamSerialiser serialiser(stream);
354-
serialiser.writeChunkBegin(CACHE_CHUNK_ID, 2);
354+
serialiser.writeChunkBegin(CACHE_CHUNK_ID, 3);
355355

356356
// write the size of the array
357357
uint32 sizeOfArray = static_cast<uint32>(mMicrocodeCache.size());
@@ -391,9 +391,10 @@ namespace {
391391
return;
392392
}
393393

394-
if(chunk->id != CACHE_CHUNK_ID || chunk->version != 2)
394+
if(chunk->id != CACHE_CHUNK_ID || chunk->version != 3)
395395
{
396396
LogManager::getSingleton().logWarning("Invalid Microcode Cache");
397+
serialiser.readChunkEnd(CACHE_CHUNK_ID);
397398
return;
398399
}
399400
// write the size of the array

0 commit comments

Comments
 (0)