renderer/opengl: minimum contrast for black sets proper color

Fixes #8745

When rendering black for minimum contrast we were setting opacity to 0
making it invisible.
pull/8782/head
Mitchell Hashimoto 2025-09-19 09:45:07 -07:00
parent 122731c6e8
commit c42ed70758
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ vec4 contrasted_color(float min_ratio, vec4 fg, vec4 bg) {
if (white_ratio > black_ratio) {
return vec4(1.0);
} else {
return vec4(0.0);
return vec4(0.0, 0.0, 0.0, 1.0);
}
}