Skip to content

Commit

Permalink
added missing HOT_RELOAD_ENABLED flag
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriySalnikov committed Sep 14, 2023
1 parent 06f1ed8 commit 6757d9e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/2d/debug_draw_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ DebugDraw2D::~DebugDraw2D() {
UNASSIGN_SINGLETON(DebugDraw2D);

#ifndef DISABLE_DEBUG_RENDERING
_font.unref();

data_graphs.reset();
grouped_text.reset();

Expand All @@ -104,7 +102,6 @@ DebugDraw2D::~DebugDraw2D() {
#endif

root_node = nullptr;
config.unref();
}

void DebugDraw2D::process(double delta) {
Expand Down
1 change: 0 additions & 1 deletion src/3d/debug_draw_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ DebugDraw3D::~DebugDraw3D() {
dgc.reset();
#endif

config.unref();
root_node = nullptr;
}

Expand Down
4 changes: 3 additions & 1 deletion src/debug_draw_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ DebugDrawManager::DebugDrawManager() {

DebugDrawManager::~DebugDrawManager() {
UNASSIGN_SINGLETON(DebugDrawManager);
_exit_tree();
#ifndef HOT_RELOAD_ENABLED
_exit_tree()
#endif
}

void DebugDrawManager::init() {
Expand Down
4 changes: 2 additions & 2 deletions src/dev_debug_draw_3d_Library.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<WarningLevel>Level3</WarningLevel>
<SDLCheck>false</SDLCheck>
<ConformanceMode>true</ConformanceMode>
<PreprocessorDefinitions>WIN64;NOMINMAX;TYPED_METHOD_BIND;DEBUG_ENABLED;GDEXTENSION_LIBRARY;TOOLS_ENABLED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN64;NOMINMAX;TYPED_METHOD_BIND;HOT_RELOAD_ENABLED;DEBUG_ENABLED;GDEXTENSION_LIBRARY;TOOLS_ENABLED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<ExceptionHandling>Sync</ExceptionHandling>
<WholeProgramOptimization>true</WholeProgramOptimization>
Expand Down Expand Up @@ -118,7 +118,7 @@
<WarningLevel>Level3</WarningLevel>
<SDLCheck>false</SDLCheck>
<ConformanceMode>true</ConformanceMode>
<PreprocessorDefinitions>WIN64;NOMINMAX;TYPED_METHOD_BIND;DEBUG_ENABLED;GDEXTENSION_LIBRARY;TOOLS_ENABLED;DEV_ENABLED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN64;NOMINMAX;TYPED_METHOD_BIND;HOT_RELOAD_ENABLED;DEBUG_ENABLED;GDEXTENSION_LIBRARY;TOOLS_ENABLED;DEV_ENABLED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<ExceptionHandling>Sync</ExceptionHandling>
<WholeProgramOptimization>
Expand Down

0 comments on commit 6757d9e

Please sign in to comment.