Skip to content

Commit

Permalink
Merge branch 'v2-3'
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Feb 18, 2024
2 parents 488f047 + 2b6d5b0 commit d56ad08
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Components/Hlms/Common/include/OgreHlmsTextureBaseClass.inl
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,15 @@ namespace Ogre
else if( !mSamplersDescSet || *mSamplersDescSet != baseSampler )
{
if( mSamplersDescSet )
{
hlmsManager->destroyDescriptorSetSampler( mSamplersDescSet );
mSamplersDescSet = hlmsManager->getDescriptorSetSampler( baseSampler );
needsRecalculateHash = true;
mSamplersDescSet = 0;
}
if( !baseSampler.mSamplers.empty() )
{
mSamplersDescSet = hlmsManager->getDescriptorSetSampler( baseSampler );
needsRecalculateHash = true;
}
}

return needsRecalculateHash;
Expand Down

0 comments on commit d56ad08

Please sign in to comment.