Skip to content

Commit

Permalink
Prevent attempts to apply hlmsDiskCacheN.bin with mismatched shader p…
Browse files Browse the repository at this point in the history
…rofile. Otherwise broken shaders are generated when cache from D3D11 RS "hlsl" is passed to VK RS "glslvk"
  • Loading branch information
eugenegff committed Nov 29, 2024
1 parent ad971a6 commit 97c8a98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OgreMain/src/OgreHlmsDiskCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ namespace Ogre
LogManager::getSingleton().logMessage(
"INFO: The cached Hlms is for shader profile in '" + mShaderProfile +
"' but it does not match the current one '" + hlms->getShaderProfile() +
"'. This increases loading times." );
"'. HlmsDiskCache won't be applied." );
return;
}

if( !mTemplatesOutOfDate &&
Expand Down

0 comments on commit 97c8a98

Please sign in to comment.