From 4247d4cf78269c143728fd7b9017d72beb4b9b9d Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 7 Mar 2020 17:24:42 +0000 Subject: [PATCH] gl_common: demote uniform location get failure log If the user is using custom shaders, picom will naturally fail to get some uniform locations if the given uniform is not used in the shader. So we really shouldn't report error for it. Signed-off-by: Yuxuan Shui --- src/backend/gl/gl_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/gl/gl_common.c b/src/backend/gl/gl_common.c index ec19d03..2ff595e 100644 --- a/src/backend/gl/gl_common.c +++ b/src/backend/gl/gl_common.c @@ -50,9 +50,9 @@ struct gl_blur_context { static GLint glGetUniformLocationChecked(GLuint p, const char *name) { auto ret = glGetUniformLocation(p, name); if (ret < 0) { - log_error("Failed to get location of uniform '%s'. the compositor might " - "not work correctly.", - name); + log_info("Failed to get location of uniform '%s'. This is normal when " + "using custom shaders.", + name); } return ret; }