Tooltip on title screen suppresses texture draw in AFTER_RENDER event
jackassmc opened this issue ยท 4 comments
This happens in the Screen API test mod in 1.17. It does not happen in 1.16.
The texture gets drawn here:
The tooltip gets drawn here:
Here's a screenshot of the title screen of the Screen API test mod in 1.17:
Here's a screenshot of the title screen of the Screen API test mod in 1.17 with the tooltip:
Is this fixed by #1474?
Is this fixed by #1474?
No, that only fixed buttons not rendering.
Ok weird, if you want to have a look why not, otherwise someone will eventually.
Turns out this is just a test mod issue.
is outdated, it's supposed to be:
RenderSystem.setShader(GameRenderer::getPositionTexShader);
RenderSystem.setShaderTexture(0, InGameHud.GUI_ICONS_TEXTURE);
Screen.renderTooltipFromComponents
calls
RenderSystem.setShader(GameRenderer::getPositionColorShader);
so in the AFTER_RENDER event the shader is wrong if the tooltip gets rendered but is accidentally right if it isn't.