Merge pull request #1038 from ostermine/fix/hud-render-before-frame
Some checks are pending
x86-64 AppImage / build-appimage (ubuntu-22.04) (push) Waiting to run
Build / Build (push) Waiting to run
Macos Build / build-dmg (push) Waiting to run
Windows Build (CLang) / build-windows (clang, windows-latest) (push) Waiting to run
MSVC Build / build-windows (windows-2022) (push) Waiting to run

call on_hud_render before rendering the frame
This commit is contained in:
MihailRis 2026-10-14 12:17:20 +03:00 • committed by GitHub
commit 17bdbb1a38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -271,11 +271,9 @@ void LevelScreen::draw(float delta) {
if (!hud->isPause()) {
scripting::on_entities_render(engine.getTime().getDelta());
}
renderer->renderFrame(ctx, camera, hudVisible, *postProcessing);
if (!hud->isPause()) {
scripting::on_frontend_render();
}
renderer->renderFrame(ctx, camera, hudVisible, *postProcessing);
if (hudVisible) {
hud->draw(ctx);