From 7d6ebb391f991e1dfab832e581a640bdd4d211e3 Mon Sep 17 00:00:00 2001 From: Lucas Date: Sun, 5 May 2019 21:21:53 +0200 Subject: [PATCH] Remove GPU debug messages on startup, lets be real we aint fixing that --- .../client/plugins/gpu/GpuPlugin.java | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/gpu/GpuPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/gpu/GpuPlugin.java index 7c0054ac66..80d37e7566 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/gpu/GpuPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/gpu/GpuPlugin.java @@ -243,11 +243,6 @@ public class GpuPlugin extends Plugin implements DrawCallbacks canvas = client.getCanvas(); canvas.setIgnoreRepaint(true); - if (log.isDebugEnabled()) - { - System.setProperty("jogl.debug", "true"); - } - GLProfile.initSingleton(); GLProfile glProfile = GLProfile.get(GLProfile.GL4); @@ -264,11 +259,6 @@ public class GpuPlugin extends Plugin implements DrawCallbacks glDrawable.setRealized(true); glContext = glDrawable.createContext(null); - if (log.isDebugEnabled()) - { - // Debug config on context needs to be set before .makeCurrent call - glContext.enableGLDebugMessage(true); - } int res = glContext.makeCurrent(); if (res == GLContext.CONTEXT_NOT_CURRENT) @@ -285,15 +275,6 @@ public class GpuPlugin extends Plugin implements DrawCallbacks this.gl = glContext.getGL().getGL4(); gl.setSwapInterval(0); - if (log.isDebugEnabled()) - { - gl.glEnable(gl.GL_DEBUG_OUTPUT); - - // Suppress warning messages which flood the log on NVIDIA systems. - gl.getContext().glDebugMessageControl(gl.GL_DEBUG_SOURCE_API, gl.GL_DEBUG_TYPE_OTHER, - gl.GL_DEBUG_SEVERITY_NOTIFICATION, 0, null, 0, false); - } - initVao(); initProgram(); initInterfaceTexture();