From eba3927aceedd3052f52b2c0997d5dd858c8e4dd Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sat, 8 Oct 2022 11:43:48 +0200 Subject: [PATCH] Remove .with_srgb(false) when constructing window (#2110) --- crates/eframe/src/native/run.rs | 1 - crates/egui_glium/examples/native_texture.rs | 1 - crates/egui_glium/examples/pure_glium.rs | 1 - crates/egui_glow/examples/pure_glow.rs | 1 - 4 files changed, 4 deletions(-) diff --git a/crates/eframe/src/native/run.rs b/crates/eframe/src/native/run.rs index a248ad76..802b44a0 100644 --- a/crates/eframe/src/native/run.rs +++ b/crates/eframe/src/native/run.rs @@ -338,7 +338,6 @@ mod glow_integration { .with_hardware_acceleration(hardware_acceleration) .with_depth_buffer(native_options.depth_buffer) .with_multisampling(native_options.multisampling) - .with_srgb(false) .with_stencil_buffer(native_options.stencil_buffer) .with_vsync(native_options.vsync) .build_windowed(window_builder, event_loop) diff --git a/crates/egui_glium/examples/native_texture.rs b/crates/egui_glium/examples/native_texture.rs index d383c349..9535193e 100644 --- a/crates/egui_glium/examples/native_texture.rs +++ b/crates/egui_glium/examples/native_texture.rs @@ -115,7 +115,6 @@ fn create_display(event_loop: &glutin::event_loop::EventLoop<()>) -> glium::Disp let context_builder = glutin::ContextBuilder::new() .with_depth_buffer(0) - .with_srgb(false) .with_stencil_buffer(0) .with_vsync(true); diff --git a/crates/egui_glium/examples/pure_glium.rs b/crates/egui_glium/examples/pure_glium.rs index 840a43a3..dc7ad58f 100644 --- a/crates/egui_glium/examples/pure_glium.rs +++ b/crates/egui_glium/examples/pure_glium.rs @@ -101,7 +101,6 @@ fn create_display(event_loop: &glutin::event_loop::EventLoop<()>) -> glium::Disp let context_builder = glutin::ContextBuilder::new() .with_depth_buffer(0) - .with_srgb(false) .with_stencil_buffer(0) .with_vsync(true); diff --git a/crates/egui_glow/examples/pure_glow.rs b/crates/egui_glow/examples/pure_glow.rs index df19f9c4..1ef40f2f 100644 --- a/crates/egui_glow/examples/pure_glow.rs +++ b/crates/egui_glow/examples/pure_glow.rs @@ -116,7 +116,6 @@ fn create_display( let gl_window = unsafe { glutin::ContextBuilder::new() .with_depth_buffer(0) - .with_srgb(false) .with_stencil_buffer(0) .with_vsync(true) .build_windowed(window_builder, event_loop)