Skip to content

Commit

Permalink
Main: Mesh - actually only trigger assertion in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Apr 8, 2023
1 parent 58a7844 commit cb1f18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OgreMain/src/OgreMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ namespace Ogre {
if (!HardwareBufferManager::getSingletonPtr()) // LogManager might be also gone already
{
printf("ERROR: '%s' is being destroyed after HardwareBufferManager. This is a bug in user code.\n", mName.c_str());
OgreAssert(false, "Mesh destroyed after HardwareBufferManager"); // assert in debug mode
OgreAssertDbg(false, "Mesh destroyed after HardwareBufferManager"); // assert in debug mode
return; // try not to crash
}
// have to call this here reather than in Resource destructor
Expand Down

0 comments on commit cb1f18f

Please sign in to comment.