Don't request a GL context with sRGB enabled.
authorBernie Innocenti <bernie@codewiz.org>
Wed, 20 Dec 2017 21:21:49 +0000 (16:21 -0500)
committerBernie Innocenti <bernie@codewiz.org>
Wed, 20 Dec 2017 21:21:49 +0000 (16:21 -0500)
It's not supported by the Intel Linux drivers (not in my configuration,
at least).

main.rs

diff --git a/main.rs b/main.rs
index 5fc2ded11b78b2f7dcc95d1a598967e58bd32666..02bb86a0a08cc119d9ae584ba1b56c657bf3b769 100644 (file)
--- a/main.rs
+++ b/main.rs
@@ -73,8 +73,7 @@ fn main() {
     let context = glutin::ContextBuilder::new()
         .with_gl_profile(glutin::GlProfile::Core)
         .with_depth_buffer(24)
-        .with_vsync(true)
-        .with_srgb(true);
+        .with_vsync(true);
     let display = glium::Display::new(window, context, &events_loop).unwrap();
     gl_info(&display);