Remove GPU debug messages on startup, lets be real we aint fixing that

This commit is contained in:
Lucas
2019-05-05 21:21:53 +02:00
parent 4827a852c1
commit 7d6ebb391f

View File

@@ -243,11 +243,6 @@ public class GpuPlugin extends Plugin implements DrawCallbacks
canvas = client.getCanvas(); canvas = client.getCanvas();
canvas.setIgnoreRepaint(true); canvas.setIgnoreRepaint(true);
if (log.isDebugEnabled())
{
System.setProperty("jogl.debug", "true");
}
GLProfile.initSingleton(); GLProfile.initSingleton();
GLProfile glProfile = GLProfile.get(GLProfile.GL4); GLProfile glProfile = GLProfile.get(GLProfile.GL4);
@@ -264,11 +259,6 @@ public class GpuPlugin extends Plugin implements DrawCallbacks
glDrawable.setRealized(true); glDrawable.setRealized(true);
glContext = glDrawable.createContext(null); 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(); int res = glContext.makeCurrent();
if (res == GLContext.CONTEXT_NOT_CURRENT) if (res == GLContext.CONTEXT_NOT_CURRENT)
@@ -285,15 +275,6 @@ public class GpuPlugin extends Plugin implements DrawCallbacks
this.gl = glContext.getGL().getGL4(); this.gl = glContext.getGL().getGL4();
gl.setSwapInterval(0); 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(); initVao();
initProgram(); initProgram();
initInterfaceTexture(); initInterfaceTexture();