Skip to content

Commit

Permalink
Fix false positive assert when destroying CubemapProbes
Browse files Browse the repository at this point in the history
HlmsPbsDatablock must inform CubemapProbe when it is destroyed
  • Loading branch information
darksylinc committed Jan 5, 2025
1 parent 3861118 commit ebce9a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Components/Hlms/Pbs/src/OgreHlmsPbsDatablock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,11 @@ namespace Ogre
//-----------------------------------------------------------------------------------
HlmsPbsDatablock::~HlmsPbsDatablock()
{
if( mCubemapProbe )
{
mCubemapProbe->_removeReference();
mCubemapProbe = 0;
}
if( mAssignedPool )
static_cast<HlmsPbs *>( mCreator )->releaseSlot( this );
}
Expand Down

0 comments on commit ebce9a6

Please sign in to comment.