Skip to content

Commit

Permalink
fixed shader cache entry creation in HlmsLowLevel::createShaderCacheE…
Browse files Browse the repository at this point in the history
…ntry() when getProperty( kNoTid, HlmsBaseProp::ShadowCaster )!=casterPass
  • Loading branch information
dyunchik authored and eugenegff committed Oct 21, 2024
1 parent c125d41 commit 99a76ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OgreMain/src/OgreHlms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3660,8 +3660,13 @@ namespace Ogre
// Low level is a special case because it doesn't (yet?) support parallel compilation
if( !parallelQueue || mType == HLMS_LOW_LEVEL )
{
bool saveShadowCasterProp = getProperty( kNoTid, HlmsBaseProp::ShadowCaster );
if( saveShadowCasterProp != casterPass )
setProperty( kNoTid, HlmsBaseProp::ShadowCaster, casterPass );
lastReturnedValue = createShaderCacheEntry( hash[0], passCache, finalHash,
queuedRenderable, nullptr, kNoTid );
if( saveShadowCasterProp != casterPass )
setProperty( kNoTid, HlmsBaseProp::ShadowCaster, saveShadowCasterProp );
}
else
{
Expand Down

0 comments on commit 99a76ae

Please sign in to comment.