Skip to content

Commit

Permalink
fixed "your comparator is not valid strict ordering"
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenegff committed Sep 4, 2024
1 parent 95dbec0 commit 9e9ad2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion OgreMain/include/OgreConstBufferPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ namespace Ogre
inline bool OrderConstBufferPoolUserByPoolThenSlot( const ConstBufferPoolUser *_l,
const ConstBufferPoolUser *_r )
{
return _l->mAssignedPool < _r->mAssignedPool && _l->mAssignedSlot < _r->mAssignedSlot;
if( _l->mAssignedPool != _r->mAssignedPool )
return _l->mAssignedPool < _r->mAssignedPool;
return _l->mAssignedSlot < _r->mAssignedSlot;
}

/** @} */
Expand Down

0 comments on commit 9e9ad2d

Please sign in to comment.