MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / checkGlError

Method checkGlError

src/main/java/net/minecraft/src/Config.java:1201–1214  ·  view source on GitHub ↗
(String p_checkGlError_0_)

Source from the content-addressed store, hash-verified

1199 }
1200
1201 public static void checkGlError(String p_checkGlError_0_) {
1202 int i = GlStateManager.glGetError();
1203
1204 if (i != 0 && GlErrors.isEnabled(i)) {
1205 String s = getGlErrorString(i);
1206 String s1 = String.format("OpenGL error: %s (%s), at: %s", i, s, p_checkGlError_0_);
1207 error(s1);
1208
1209 if (isShowGlErrors() && TimedEvent.isActive("ShowGlError", 10000L)) {
1210 String s2 = I18n.format("of.message.openglError", i, s);
1211 minecraft.ingameGUI.getChatGUI().printChatMessage(new ChatComponentText(s2));
1212 }
1213 }
1214 }
1215
1216 public static boolean isSmoothBiomes() {
1217 return gameSettings.ofSmoothBiomes;

Callers 2

copyVboDataMethod · 0.95
expandVboMethod · 0.95

Calls 10

glGetErrorMethod · 0.95
isEnabledMethod · 0.95
getGlErrorStringMethod · 0.95
errorMethod · 0.95
isShowGlErrorsMethod · 0.95
isActiveMethod · 0.95
formatMethod · 0.95
printChatMessageMethod · 0.80
getChatGUIMethod · 0.80
formatMethod · 0.65

Tested by

no test coverage detected