Skip to content

Commit

Permalink
abrunner: simple fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Apr 12, 2024
1 parent 78859f9 commit d678aab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hello_imgui/internal/backend_impls/abstract_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1257,10 +1257,9 @@ void AbstractRunner::CreateFramesAndRender()
}
#endif

mIdxFrame += 1;

if (_CheckDpiAwareParamsChanges(params))
{
printf("_CheckDpiAwareParamsChanges returned true => reload all fonts\n");
mRenderingBackendCallbacks->Impl_DestroyFontTexture();
_ReloadAllDpiResponsiveFonts();
// cf https://github.com/ocornut/imgui/issues/6547: we need to recreate the rendering backend device objects
Expand All @@ -1273,6 +1272,8 @@ void AbstractRunner::CreateFramesAndRender()
}
#endif
}

mIdxFrame += 1;
}

// Idling for non emscripten, where HelloImGui is responsible for the main loop.
Expand Down

0 comments on commit d678aab

Please sign in to comment.