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 <yshuiv7@gmail.com>
This commit is contained in:
parent
7817f52cb1
commit
4247d4cf78
|
@ -50,9 +50,9 @@ struct gl_blur_context {
|
||||||
static GLint glGetUniformLocationChecked(GLuint p, const char *name) {
|
static GLint glGetUniformLocationChecked(GLuint p, const char *name) {
|
||||||
auto ret = glGetUniformLocation(p, name);
|
auto ret = glGetUniformLocation(p, name);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
log_error("Failed to get location of uniform '%s'. the compositor might "
|
log_info("Failed to get location of uniform '%s'. This is normal when "
|
||||||
"not work correctly.",
|
"using custom shaders.",
|
||||||
name);
|
name);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue