# HG changeset patch # User Emmanuel Gil Peyrot # Date 1565264368 -7200 # Node ID 967627181a765419a6d173b3dd7ef3dc21f509ce # Parent 3331eb7389b304d8b353d0e0caac05ac70d837a6 Use the merged name of RGB in AnmRenderer. See https://github.com/phaazon/luminance-rs/pull/150 for reasoning. diff --git a/examples/anmrenderer.rs b/examples/anmrenderer.rs --- a/examples/anmrenderer.rs +++ b/examples/anmrenderer.rs @@ -2,7 +2,7 @@ use image::GenericImageView; use luminance::context::GraphicsContext; use luminance::framebuffer::Framebuffer; use luminance::pipeline::BoundTexture; -use luminance::pixel::{RGB, Floating}; +use luminance::pixel::{NormRGB8UI, Floating}; use luminance::render_state::RenderState; use luminance::shader::program::{Program, Uniform}; use luminance::tess::{Mode, TessBuilder}; @@ -203,7 +203,7 @@ fn fill_vertices(sprite: Rc Option> { +fn load_from_disk(surface: &mut GlfwSurface, path: &Path) -> Option> { // load the texture into memory as a whole bloc (i.e. no streaming) match image::open(&path) { Ok(img) => {