From 5dad4919a227a265880de3abaa9940b4220a2d95 Mon Sep 17 00:00:00 2001 From: "らりお (YOSHIOKA Takuma)" Date: Tue, 13 Mar 2018 15:11:56 +0900 Subject: 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 for my debug log. --- src/window.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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(); -- cgit