Remove GPU debug messages on startup, lets be real we aint fixing that
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user