From cb1f18f3b807378c4c0ea54472f0f348d6f8160f Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Sat, 8 Apr 2023 14:26:56 +0200 Subject: [PATCH] Main: Mesh - actually only trigger assertion in debug mode --- OgreMain/src/OgreMesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OgreMain/src/OgreMesh.cpp b/OgreMain/src/OgreMesh.cpp index 673e2c94043..4e55fd0d49c 100644 --- a/OgreMain/src/OgreMesh.cpp +++ b/OgreMain/src/OgreMesh.cpp @@ -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