Skip to content

Commit

Permalink
Update imgui_manager.cpp
Browse files Browse the repository at this point in the history
Whoops^2
  • Loading branch information
johannesugb committed Oct 21, 2023
1 parent 3837514 commit 046c061
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auto_vk_toolkit/src/imgui_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ namespace avk
float uiScale = fontSize / baseFontSize;

uint8_t* data = nullptr;
bool useDefaultFont = mCustomFontMode == font_mode::automatic
bool useDefaultFont = mFontMode == font_mode::automatic
? glm::abs(uiScale - 1.f) < 1e-5f
: mCustomFontMode == font_mode::use_default_font;
: mFontMode == font_mode::use_default_font;
if (useDefaultFont) {
io.Fonts->AddFontDefault();
}
Expand Down

0 comments on commit 046c061

Please sign in to comment.