From 6d1bfd9e3e4bbac11ba9c666f2557a599e2e7a51 Mon Sep 17 00:00:00 2001 From: LAX1DUDE Date: Wed, 12 Jan 2022 18:31:05 -0800 Subject: [PATCH] forgot to push webgl error logging fix --- src/main/java/net/minecraft/client/Minecraft.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main/java/net/minecraft/client/Minecraft.java b/src/main/java/net/minecraft/client/Minecraft.java index 137299d..490ecbb 100644 --- a/src/main/java/net/minecraft/client/Minecraft.java +++ b/src/main/java/net/minecraft/client/Minecraft.java @@ -526,14 +526,15 @@ public class Minecraft implements Runnable { * string. */ public void checkGLError(String par1Str) { - //int var2 = EaglerAdapter.glGetError(); + int var2; + - //if (var2 != 0) { - // String var3 = EaglerAdapter.gluErrorString(var2); - // System.err.println("########## GL ERROR ##########"); - // System.err.println("@ " + par1Str); - // System.err.println(var2 + ": " + var3); - //} + while ((var2 = EaglerAdapter.glGetError()) != 0) { + String var3 = EaglerAdapter.gluErrorString(var2); + System.err.println("########## GL ERROR ##########"); + System.err.println("@ " + par1Str); + System.err.println(var2 + ": " + var3); + } } /**