Skip to content

Commit

Permalink
Fix crash on shutdown and error in Vulkan (2.3 branch)
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Sep 7, 2021
1 parent 1cbc489 commit d0a01d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Samples/2.0/Tutorials/Tutorial_Terrain/src/Terra/Terra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ namespace Ogre
}
}

if( mHlmsTerraIndex != std::numeric_limits<uint32>::max() )
if( mHlmsTerraIndex == std::numeric_limits<uint32>::max() )
{
OGRE_ASSERT_HIGH( dynamic_cast<HlmsTerra *>( datablock->getCreator() ) );
HlmsTerra *hlms = static_cast<HlmsTerra *>( datablock->getCreator() );
Expand Down

0 comments on commit d0a01d2

Please sign in to comment.