Skip to content

Commit

Permalink
Enable SRGB (#1178)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lo48576 authored and jwilm committed Mar 13, 2018
1 parent b9ad0cf commit 5dad491
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/window.rs
Expand Up @@ -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();
Expand Down

0 comments on commit 5dad491

Please sign in to comment.