Skip to content

Commit

Permalink
do not compare OGRE_DEBUG_MODE with 1, it can be 0..3
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenegff committed Sep 20, 2024
1 parent e45cc81 commit f72b0ca
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion OgreMain/include/OgreFileSystemLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ namespace Ogre
*/
const Ogre::String getConfigFilePath( Ogre::String filename ) const
{
#if OGRE_DEBUG_MODE == 1 && \
#if OGRE_DEBUG_MODE && \
( OGRE_PLATFORM != OGRE_PLATFORM_APPLE && OGRE_PLATFORM != OGRE_PLATFORM_APPLE_IOS )
// add OGRE_BUILD_SUFFIX (default: "_d") to config file names
Ogre::String::size_type pos = filename.rfind( '.' );
Expand Down
2 changes: 1 addition & 1 deletion OgreMain/src/WIN32/OgreConfigDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace Ogre
# ifdef OGRE_STATIC_LIB
mHInstance = GetModuleHandle( NULL );
# else
# if OGRE_DEBUG_MODE == 1
# if OGRE_DEBUG_MODE
mHInstance = GetModuleHandle( "OgreMain_d.dll" );
# else
mHInstance = GetModuleHandle( "OgreMain.dll" );
Expand Down
2 changes: 1 addition & 1 deletion OgreMain/src/WIN32/OgreErrorDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace Ogre
# ifdef OGRE_STATIC_LIB
mHInstance = GetModuleHandle( NULL );
# else
# if OGRE_DEBUG_MODE == 1
# if OGRE_DEBUG_MODE
mHInstance = GetModuleHandle( "OgreMain_d.dll" );
# else
mHInstance = GetModuleHandle( "OgreMain.dll" );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ namespace Ogre
# ifdef OGRE_STATIC_LIB
hinst = GetModuleHandle( NULL );
# else
# if OGRE_DEBUG_MODE == 1
# if OGRE_DEBUG_MODE
hinst = GetModuleHandle( "RenderSystem_GL3Plus_d.dll" );
# else
hinst = GetModuleHandle( "RenderSystem_GL3Plus.dll" );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ namespace Ogre
# ifdef OGRE_STATIC_LIB
hInstance = GetModuleHandle( NULL );
# else
# if OGRE_DEBUG_MODE == 1
# if OGRE_DEBUG_MODE
hInstance = GetModuleHandle( "RenderSystem_GL3Plus_d.dll" );
# else
hInstance = GetModuleHandle( "RenderSystem_GL3Plus.dll" );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ namespace Ogre
# ifdef OGRE_STATIC_LIB
hInstance = GetModuleHandle( NULL );
# else
# if OGRE_DEBUG_MODE == 1
# if OGRE_DEBUG_MODE
hInstance = GetModuleHandle( "RenderSystem_Vulkan_d.dll" );
# else
hInstance = GetModuleHandle( "RenderSystem_Vulkan.dll" );
Expand Down

0 comments on commit f72b0ca

Please sign in to comment.