From b274a9f5055115b152159c0f146542a91fb4bb63 Mon Sep 17 00:00:00 2001 From: YOSHIOKA Takuma Date: Mon, 12 Mar 2018 21:27:16 +0900 Subject: [PATCH] Enable SRGB 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 for my debug log. --- src/window.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/window.rs b/src/window.rs index 9644cd42fa..0f527a4f64 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();