Skip to content

Fix HUD scissors being out of bounds - #123

Open
Wyvest wants to merge 1 commit into
decce6:masterfrom
Wyvest:master
Open

Fix HUD scissors being out of bounds#123
Wyvest wants to merge 1 commit into
decce6:masterfrom
Wyvest:master

Conversation

@Wyvest

@Wyvest Wyvest commented Sep 11, 2026

Copy link
Copy Markdown

causes crashes on versions 1.21.10 and above, causes visual glitches on versions below

crash in question: https://haste.prod.getfire.bot/t48mc95yaxqy

@decce6

decce6 commented Sep 11, 2026

Copy link
Copy Markdown
Owner

Thanks for the contribution, but could you clarify how to reproduce the crash / the visual glitches?

Looks like there's a chance this will also resolve #115

@Wyvest

Wyvest commented Sep 11, 2026

Copy link
Copy Markdown
Author

could you clarify how to reproduce the crash / the visual glitches

  1. turn on gnetum hud downscaling, set gui scale to 2 or higher
  2. install vanillahud
  3. join any server and open tab
  4. the tab animation, which uses a scissor to animate, will crash minecraft

alternatively, I did this on the gnetum repo to temporarily reproduce the issue
in HudMixin.gnetum$wrapHudRender, right after Gnetum.rendering = true;:

var prev = Gnetum.currentElement;
Gnetum.currentElement = Gnetum.config.map.get("hotbar");
guiGraphics.enableScissor(0, 0, 100, 50);
guiGraphics.fill(0, 0, 400, 400, 0x80FF0000);
guiGraphics.disableScissor();
Gnetum.currentElement = prev;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants