From 4880d95d2909fe241c97824ed53a5a1c8c37ebc3 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Mon, 18 Nov 2024 04:18:15 +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 0063fd46d..ee5e4837c 100644 --- a/src/frontend/hud.cpp +++ b/src/frontend/hud.cpp @@ -540,7 +540,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);