Fix Vello rendering the infinite canvas without a white background color (#2361)

Fix infinite canvas for vello

Remove debugging fill

Remove debug log
This commit is contained in:
Dennis Kobert
2025-03-06 12:37:00 +01:00
committed by GitHub
parent e7cde88c04
commit 6becaef980
3 changed files with 11 additions and 6 deletions

View File

@@ -864,7 +864,7 @@ impl Color {
/// ```
#[inline(always)]
pub fn to_rgba8_srgb(&self) -> [u8; 4] {
let gamma = self.to_gamma_srgb().to_gamma_srgb();
let gamma = self.to_gamma_srgb();
[(gamma.red * 255.) as u8, (gamma.green * 255.) as u8, (gamma.blue * 255.) as u8, (gamma.alpha * 255.) as u8]
}