aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorらりお (YOSHIOKA Takuma) <lo48576@hard-wi.red>2018-03-13 15:11:56 +0900
committerJoe Wilm <jwilm@users.noreply.github.com>2018-03-12 23:11:56 -0700
commit5dad4919a227a265880de3abaa9940b4220a2d95 (patch)
tree145913c5f55ccb3835ea510d5ee9c16a75166d76
parentb9ad0cfad30c6fd1328658d8195f552f24df6ff9 (diff)
downloadalacritty-5dad4919a227a265880de3abaa9940b4220a2d95.tar.gz
alacritty-5dad4919a227a265880de3abaa9940b4220a2d95.zip
Enable SRGB (#1178)
This will solve the error "Error creating GL context; Couldn't find any pixel format that matches the criterias." (I think this maybe a problem of mesa (18.0.0_rc4), but I'm not sure. See the thread <https://mastodon.cardina1.red/@lo48576/99670278063669603> for my debug log.
-rw-r--r--src/window.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window.rs b/src/window.rs
index 9644cd42..0f527a4f 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -200,6 +200,7 @@ impl Window {
.with_transparency(true)
.with_decorations(window_config.decorations());
let context = ContextBuilder::new()
+ .with_srgb(true)
.with_vsync(true);
let window = ::glutin::GlWindow::new(window, context, &event_loop)?;
window.show();