diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-02-06 01:09:09 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-02-06 01:09:09 +0300 |
commit | bfe6e792c727e42dd7d7aea92e95944232ae1ecd (patch) | |
tree | 7c90a28c130b166376b813bad3b9b29a3816fdec /source/blender/gpu/opengl | |
parent | 26b70fce8ae7c9174f4e410fc1f36075a9b333f3 (diff) | |
parent | 3a90f93507a344d2b6eb3ae631371348ff977047 (diff) |
Merge branch 'blender-v3.1-release'
Diffstat (limited to 'source/blender/gpu/opengl')
-rw-r--r-- | source/blender/gpu/opengl/gl_debug.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/gpu/opengl/gl_debug.cc b/source/blender/gpu/opengl/gl_debug.cc index 4b78f20824b..fe558677f56 100644 --- a/source/blender/gpu/opengl/gl_debug.cc +++ b/source/blender/gpu/opengl/gl_debug.cc @@ -108,6 +108,11 @@ static void APIENTRY debug_callback(GLenum UNUSED(source), GPU_debug_get_groups_names(sizeof(debug_groups), debug_groups); CLG_Severity clog_severity; + if (GPU_debug_group_match(GPU_DEBUG_SHADER_COMPILATION_GROUP)) { + /** Do not duplicate shader compilation error/warnings. */ + return; + } + switch (type) { case GL_DEBUG_TYPE_ERROR: case GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR: |