Skip to content

Commit

Permalink
fix misleading error message when using shader rules
Browse files Browse the repository at this point in the history
* the logs were printing errors when loading shaders with rules,
  signalling there was an issue when loading a shader, but the shaders
  would load fine just the error message would print on success instead
  of error
  • Loading branch information
l4desu-mizu committed Dec 9, 2024
1 parent 1d4b3b3 commit c050f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/picom.c
Original file line number Diff line number Diff line change
Expand Up @@ -2077,7 +2077,7 @@ static session_t *session_init(int argc, char **argv, Display *dpy,

// Load shader source file specified in the shader rules
c2_condition_list_foreach(&ps->o.window_shader_fg_rules, i) {
if (!load_shader_source(ps, c2_condition_get_data(i))) {
if (load_shader_source(ps, c2_condition_get_data(i))) {
log_error("Failed to load shader source file for some of the "
"window shader rules");
}
Expand Down

0 comments on commit c050f89

Please sign in to comment.