Fix loading GUI corrupting matrix state
This commit is contained in:
parent
6329c0fcf2
commit
208ca23515
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,7 @@ public class EarlyLoaderGUI {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setupMatrix() {
|
private void setupMatrix() {
|
||||||
GlStateManager.clear(256, Minecraft.IS_RUNNING_ON_MAC);
|
RenderSystem.clear(256, Minecraft.IS_RUNNING_ON_MAC);
|
||||||
RenderSystem.matrixMode(5889);
|
RenderSystem.matrixMode(5889);
|
||||||
RenderSystem.loadIdentity();
|
RenderSystem.loadIdentity();
|
||||||
RenderSystem.ortho(0.0D, window.getFramebufferWidth() / window.getGuiScaleFactor(), window.getFramebufferHeight() / window.getGuiScaleFactor(), 0.0D, 1000.0D, 3000.0D);
|
RenderSystem.ortho(0.0D, window.getFramebufferWidth() / window.getGuiScaleFactor(), window.getFramebufferHeight() / window.getGuiScaleFactor(), 0.0D, 1000.0D, 3000.0D);
|
||||||
|
@ -73,9 +73,11 @@ public class EarlyLoaderGUI {
|
||||||
|
|
||||||
RenderSystem.clearColor(1.0f, 1.0f, 1.0f, 1.0f);
|
RenderSystem.clearColor(1.0f, 1.0f, 1.0f, 1.0f);
|
||||||
RenderSystem.clear(GL11.GL_COLOR_BUFFER_BIT, Minecraft.IS_RUNNING_ON_MAC);
|
RenderSystem.clear(GL11.GL_COLOR_BUFFER_BIT, Minecraft.IS_RUNNING_ON_MAC);
|
||||||
|
RenderSystem.pushMatrix();
|
||||||
setupMatrix();
|
setupMatrix();
|
||||||
renderMessages();
|
renderMessages();
|
||||||
window.flipFrame();
|
window.flipFrame();
|
||||||
|
RenderSystem.popMatrix();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void renderMessages() {
|
private void renderMessages() {
|
||||||
|
|
Loading…
Reference in a new issue