revert(gui): drop DrawContext/GuiGraphics pose sharing experiment
The earlier change had Renderer.render seed DrawContext with GuiGraphics.pose() so PanelClickGui's pushPose+scale(0.98+0.02*eased) would also drive the inner DrawContext draws. It did not visibly fix the search bar — icon/query/placeholder still rendered too high relative to the search background — and quietly mutates the shared matrix stack while CustomFont is busy pushing its own glyph transforms on top of it. Restore the Recaf-equivalent behavior: Renderer.render builds a DrawContext with its own fresh PoseStack. The PanelClickGui body wrapping with Renderer.render is kept since that is what actually gets ModuleListPanel's scissor to take effect in Screen-mode renders. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -91,7 +91,7 @@ extends ClientBase {
|
||||
RenderSystem.enableBlend();
|
||||
RenderSystem.defaultBlendFunc();
|
||||
RenderSystem.disableCull();
|
||||
DrawContext drawContext = new DrawContext(guiGraphics, guiGraphics != null ? guiGraphics.pose() : null);
|
||||
DrawContext drawContext = new DrawContext(guiGraphics);
|
||||
DrawContext previousCanvas = currentCanvas;
|
||||
currentCanvas = drawContext;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user