Skip to content

Commit

Permalink
Main: Material - assert correct Listener behaviour in getBestTechnique
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Feb 21, 2022
1 parent 6a2ac73 commit a9bf173
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions OgreMain/src/OgreMaterial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,6 @@ namespace Ogre {
//-----------------------------------------------------------------------------
Technique* Material::getBestTechnique(unsigned short lodIndex, const Renderable* rend)
{
OgreAssertDbg(mSupportedTechniques.empty() == mBestTechniquesBySchemeList.empty(),
"Techniques and scheme list must be in sync");
if (mSupportedTechniques.empty())
{
return NULL;
Expand All @@ -324,6 +322,7 @@ namespace Ogre {
if (ret)
return ret;

OgreAssert(!mBestTechniquesBySchemeList.empty(), "handleSchemeNotFound() must not remove techniques");
// Nope, use default
// get the first item, will be 0 (the default) if default
// scheme techniques exist, otherwise the earliest defined
Expand Down

0 comments on commit a9bf173

Please sign in to comment.