Skip to content

Commit

Permalink
Disable ImGui assertions by default
Browse files Browse the repository at this point in the history
  • Loading branch information
WSSDude committed Apr 2, 2021
1 parent 404504f commit 4aa64b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void Options::ResetToDefaults()
PatchDisableWin7Vsync = false;

RemoveDeadBindings = true;
EnableImGuiAssertions = true;
EnableImGuiAssertions = false;
PatchEnableDebug = false;
DumpGameOptions = false;

Expand Down
2 changes: 1 addition & 1 deletion src/Options.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct Options
bool IsFirstLaunch { true };
bool RemoveDeadBindings { true };
bool DrawImGuiDiagnosticWindow { false };
bool EnableImGuiAssertions { true };
bool EnableImGuiAssertions { false };

private:

Expand Down
2 changes: 1 addition & 1 deletion src/imgui_impl/imgui_user_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// NOTE: imgui_user_config.h is included by imgui.h which is included with precompiled header, so no need to include it here once more

// global definition "Enable ImGui Assertions"
bool g_ImGuiAssertionsEnabled{ true };
bool g_ImGuiAssertionsEnabled{ false };

#ifdef NDEBUG
// inline _wassert decl for NDEBUG as it is not emitted inside assert.h header in this case
Expand Down

0 comments on commit 4aa64b7

Please sign in to comment.