Mercurial > touhou
diff examples/common.rs @ 715:2b2376811f46
examples: Update luminance.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 23 Sep 2019 00:22:08 +0200 |
parents | 3954801b6299 |
children | d5d5496e4e53 |
line wrap: on
line diff
--- a/examples/common.rs +++ b/examples/common.rs @@ -34,7 +34,7 @@ fn load_rgb_png(surface: &mut GlfwSurfac // to 0 for now) and the latest is a the sampler to use when sampling the texels in the // shader (we’ll just use the default one) let tex = - Texture::new(surface, [width, height], 0, &Sampler::default()).expect("luminance texture creation"); + Texture::new(surface, [width, height], 0, Sampler::default()).expect("luminance texture creation"); // the first argument disables mipmap generation (we don’t care so far) tex.upload(GenMipmaps::No, &texels).unwrap(); @@ -78,7 +78,7 @@ fn load_rgb_a_pngs(surface: &mut GlfwSur // to 0 for now) and the latest is a the sampler to use when sampling the texels in the // shader (we’ll just use the default one) let tex = - Texture::new(surface, [width, height], 0, &Sampler::default()).expect("luminance texture creation"); + Texture::new(surface, [width, height], 0, Sampler::default()).expect("luminance texture creation"); // the first argument disables mipmap generation (we don’t care so far) tex.upload(GenMipmaps::No, &texels).unwrap();