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:
1 parent
82fc53d736
commit
a91c0a5d98
1 file changed
+7
-3
@@ -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)?;
|
||||
|
||||
Reference in new issue
Block a user