Skip to content

Commit

Permalink
Fix PsoCacheHelper creating same entries over and over again
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Nov 28, 2021
1 parent 79be9e9 commit 50d9e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OgreMain/src/OgrePsoCacheHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ namespace Ogre
mRenderableCache.end(), entry );

if( itor == mRenderableCache.end() ||
itor->psoRenderableKey.equalExcludePassData( entry.psoRenderableKey ) )
!itor->psoRenderableKey.equalExcludePassData( entry.psoRenderableKey ) )
{
entry.hashToMainCache = mRenderableHashCounter++;
const size_t idx = itor - mRenderableCache.begin();
Expand Down

0 comments on commit 50d9e1f

Please sign in to comment.