From ac30a5a7211b9f1dd20621d9450c62252fae8acb Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Thu, 7 Mar 2024 02:47:10 +0100 Subject: [PATCH] Use non-srgb textures --- hui-glium/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hui-glium/src/lib.rs b/hui-glium/src/lib.rs index 15dc7ce..28a36f0 100644 --- a/hui-glium/src/lib.rs +++ b/hui-glium/src/lib.rs @@ -4,7 +4,7 @@ use glium::{ Surface, DrawParameters, Blend, Program, VertexBuffer, IndexBuffer, backend::{Facade, Context}, - texture::{SrgbTexture2d, RawImage2d}, + texture::{Texture2d, RawImage2d}, index::PrimitiveType, implement_vertex, uniform, uniforms::{Sampler, SamplerBehavior, SamplerWrapFunction}, @@ -115,7 +115,7 @@ impl BufferPair { pub struct GliumUiRenderer { context: Rc, program: glium::Program, - ui_texture: Option, + ui_texture: Option, buffer_pair: Option, } @@ -143,7 +143,7 @@ impl GliumUiRenderer { fn update_texture_atlas(&mut self, atlas: &TextureAtlasMeta) { log::trace!("updating ui atlas texture"); - self.ui_texture = Some(SrgbTexture2d::new( + self.ui_texture = Some(Texture2d::new( &self.context, RawImage2d::from_raw_rgba( atlas.data.to_owned(),