From e034bda477c35efe96548e78ecc722966a7a2197 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Mon, 18 Nov 2024 04:15:51 +0300 Subject: [PATCH] fix crosshair --- src/frontend/hud.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/hud.cpp b/src/frontend/hud.cpp index bfaac141..032d0602 100644 --- a/src/frontend/hud.cpp +++ b/src/frontend/hud.cpp @@ -571,7 +571,7 @@ void Hud::draw(const DrawContext& ctx){ // Crosshair if (!pause && !inventoryOpen && !player->debug) { - DrawContext chctx = ctx.sub(); + DrawContext chctx = ctx.sub(batch); chctx.setBlendMode(BlendMode::inversion); auto texture = assets->get("gui/crosshair"); batch->texture(texture);