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 c31407d
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 c31407d

Please sign in to comment.