[Mesa-dev] [PATCH] mesa: lower severity for GLSL compiler warnings
James Legg
jlegg at feralinteractive.com
Mon Feb 13 17:43:21 UTC 2017
This matches the examples in the GL_KHR_debug spec.
---
src/mesa/main/errors.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c
index 3a40c74..ad495d6 100644
--- a/src/mesa/main/errors.c
+++ b/src/mesa/main/errors.c
@@ -385,7 +385,8 @@ _mesa_shader_debug(struct gl_context *ctx, GLenum type, GLuint *id,
const char *msg)
{
enum mesa_debug_source source = MESA_DEBUG_SOURCE_SHADER_COMPILER;
- enum mesa_debug_severity severity = MESA_DEBUG_SEVERITY_HIGH;
+ enum mesa_debug_severity severity = (type == MESA_DEBUG_TYPE_ERROR)
+ ? MESA_DEBUG_SEVERITY_HIGH : MESA_DEBUG_SEVERITY_MEDIUM;
int len;
_mesa_debug_get_id(id);
--
2.9.3
More information about the mesa-dev
mailing list