cleanup text rendering in check button ui

This commit is contained in:
Bella 2020-04-13 18:04:33 -04:00
parent a981a1dc55
commit 2fcdba1bf0
No known key found for this signature in database
GPG Key ID: DBD4A6030080C8B3
1 changed files with 1 additions and 4 deletions

View File

@ -55,10 +55,7 @@ public class RootCheckButtonUI<T extends CheckButton> extends AbstractComponentU
}
}
glColor3f(1, 1, 1);
glEnable(GL_TEXTURE_2D);
KamiGUI.fontRenderer.drawString(component.getWidth() / 2 - KamiGUI.fontRenderer.getStringWidth(text) / 2, KamiGUI.fontRenderer.getFontHeight() / 2 - 2, c, text);
glDisable(GL_TEXTURE_2D);
RenderHelper.drawText(component.getWidth() / 2 - KamiGUI.fontRenderer.getStringWidth(text) / 2, KamiGUI.fontRenderer.getFontHeight() / 2 - 2, c, text);
glDisable(GL_BLEND);
}