mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
fix crosshair
This commit is contained in:
parent
1ba5b0ce33
commit
e034bda477
1 changed files with 1 additions and 1 deletions
|
|
@ -571,7 +571,7 @@ void Hud::draw(const DrawContext& ctx){
|
||||||
|
|
||||||
// Crosshair
|
// Crosshair
|
||||||
if (!pause && !inventoryOpen && !player->debug) {
|
if (!pause && !inventoryOpen && !player->debug) {
|
||||||
DrawContext chctx = ctx.sub();
|
DrawContext chctx = ctx.sub(batch);
|
||||||
chctx.setBlendMode(BlendMode::inversion);
|
chctx.setBlendMode(BlendMode::inversion);
|
||||||
auto texture = assets->get<Texture>("gui/crosshair");
|
auto texture = assets->get<Texture>("gui/crosshair");
|
||||||
batch->texture(texture);
|
batch->texture(texture);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue