fix crosshair

This commit is contained in:
MihailRis 2024-11-18 04:18:15 +03:00
parent a333cadfca
commit 4880d95d29

View file

@ -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<Texture>("gui/crosshair");
batch->texture(texture);