forked from RepoMirrors/kami-blue
cleanup text rendering in check button ui
This commit is contained in:
parent
a981a1dc55
commit
2fcdba1bf0
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue