1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-21 11:50:42 +03:00

fixup render for macos

Apparently we need to enable srgb for all three stages in order
to output correct color.

refs: #491
This commit is contained in:
Wez Furlong 2021-02-20 20:32:30 -08:00
parent 82fc53d736
commit a91c0a5d98

View File

@ -38,9 +38,13 @@ impl RenderState {
let result = UtilSprites::new(&mut *glyph_cache.borrow_mut(), metrics);
match result {
Ok(util_sprites) => {
let background_prog =
Self::compile_prog(&context, false, Self::background_shader)?;
let line_prog = Self::compile_prog(&context, false, Self::line_shader)?;
let background_prog = Self::compile_prog(
&context,
cfg!(target_os = "macos"),
Self::background_shader,
)?;
let line_prog =
Self::compile_prog(&context, cfg!(target_os = "macos"), Self::line_shader)?;
// Last prog outputs srgb for gamma correction
let glyph_prog = Self::compile_prog(&context, true, Self::glyph_shader)?;