renderer/opengl: minimum contrast for black sets proper color (#8782)

Fixes #8745

When rendering black for minimum contrast we were setting opacity to 0
making it invisible.
1.2.x
Mitchell Hashimoto 2025-09-19 09:58:50 -07:00
parent d231e94535
commit 12446d7d50
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);
}
}