mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-26 21:08:40 +00:00
Glium has sane sampler defaults so just trust them
This commit is contained in:
parent
329f24d221
commit
81b784d69a
@ -119,7 +119,6 @@ impl Renderer {
|
|||||||
fb_size: (f32, f32),
|
fb_size: (f32, f32),
|
||||||
matrix: [[f32; 4]; 4],
|
matrix: [[f32; 4]; 4],
|
||||||
) -> RendererResult<()> {
|
) -> RendererResult<()> {
|
||||||
use glium::uniforms::{MagnifySamplerFilter, MinifySamplerFilter};
|
|
||||||
use glium::{Blend, DrawParameters, Rect};
|
use glium::{Blend, DrawParameters, Rect};
|
||||||
|
|
||||||
let (fb_width, fb_height) = fb_size;
|
let (fb_width, fb_height) = fb_size;
|
||||||
@ -149,8 +148,6 @@ impl Renderer {
|
|||||||
&uniform! {
|
&uniform! {
|
||||||
matrix: matrix,
|
matrix: matrix,
|
||||||
tex: self.device_objects.texture.sampled()
|
tex: self.device_objects.texture.sampled()
|
||||||
.magnify_filter(MagnifySamplerFilter::Linear)
|
|
||||||
.minify_filter(MinifySamplerFilter::Linear),
|
|
||||||
},
|
},
|
||||||
&DrawParameters {
|
&DrawParameters {
|
||||||
blend: Blend::alpha_blending(),
|
blend: Blend::alpha_blending(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user