From c2c5716524b86c3d6868f569e4052586925df5e5 Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Wed, 14 Jun 2017 14:02:07 +0200 Subject: [PATCH] example: use Texture2d to have correct gamma correction This mimicks what weston does. --- examples/helpers/glium.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/helpers/glium.rs b/examples/helpers/glium.rs index 718b009..421a85d 100644 --- a/examples/helpers/glium.rs +++ b/examples/helpers/glium.rs @@ -90,7 +90,7 @@ impl<'a, F: glium::backend::Facade + 'a> GliumDrawer<'a, F> { height: surface_dimensions.1, format: glium::texture::ClientFormat::U8U8U8U8, }; - let opengl_texture = glium::texture::CompressedSrgbTexture2d::new(self.display, image).unwrap(); + let opengl_texture = glium::texture::Texture2d::new(self.display, image).unwrap(); let xscale = 2.0 * (surface_dimensions.0 as f32) / (screen_size.0 as f32); let yscale = -2.0 * (surface_dimensions.1 as f32) / (screen_size.1 as f32);