gpu: update suppressed warnings

This commit is contained in:
Adam
2021-11-05 11:05:07 -04:00
parent 97e5186535
commit 94e2627697

View File

@@ -401,9 +401,21 @@ public class GpuPlugin extends Plugin implements DrawCallbacks
{
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);
// GLDebugEvent[ id 0x20071
// type Warning: generic
// severity Unknown (0x826b)
// source GL API
// msg Buffer detailed info: Buffer object 11 (bound to GL_ARRAY_BUFFER_ARB, and GL_SHADER_STORAGE_BUFFER (4), usage hint is GL_STREAM_DRAW) will use VIDEO memory as the source for buffer object operations.
glContext.glDebugMessageControl(gl.GL_DEBUG_SOURCE_API, gl.GL_DEBUG_TYPE_OTHER,
gl.GL_DONT_CARE, 1, new int[]{0x20071}, 0, false);
// GLDebugMessageHandler: GLDebugEvent[ id 0x20052
// type Warning: implementation dependent performance
// severity Medium: Severe performance/deprecation/other warnings
// source GL API
// msg Pixel-path performance warning: Pixel transfer is synchronized with 3D rendering.
glContext.glDebugMessageControl(gl.GL_DEBUG_SOURCE_API, gl.GL_DEBUG_TYPE_PERFORMANCE,
gl.GL_DONT_CARE, 1, new int[]{0x20052}, 0, false);
}
initVao();