mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-15 07:28:28 +00:00
Upgrade to Glium 0.9.0
This commit is contained in:
parent
05b3067aba
commit
32f789ae26
@ -15,7 +15,7 @@ default = ["glium"]
|
||||
libc = "0.1"
|
||||
|
||||
[dependencies.glium]
|
||||
version = "0.8"
|
||||
version = "0.9"
|
||||
default-features = false
|
||||
optional = true
|
||||
|
||||
@ -30,6 +30,6 @@ gcc = "0.3"
|
||||
time = "0.1"
|
||||
|
||||
[dev-dependencies.glium]
|
||||
version = "0.8"
|
||||
version = "0.9"
|
||||
features = ["glutin"]
|
||||
default-features = false
|
||||
|
||||
@ -16,7 +16,7 @@ bitflags = "0.3"
|
||||
libc = "0.1"
|
||||
|
||||
[dependencies.glium]
|
||||
version = "0.8"
|
||||
version = "0.9"
|
||||
default-features = false
|
||||
optional = true
|
||||
|
||||
|
||||
@ -1,9 +1,8 @@
|
||||
use glium::{
|
||||
index, program, texture, vertex,
|
||||
DrawError, DrawParameters, IndexBuffer, Program, Rect, Surface, Texture2d, VertexBuffer
|
||||
Blend, DrawError, DrawParameters, IndexBuffer, Program, Rect, Surface, Texture2d, VertexBuffer
|
||||
};
|
||||
use glium::backend::{Context, Facade};
|
||||
use glium::draw_parameters::{BlendingFunction, LinearBlendingFactor};
|
||||
use glium::index::PrimitiveType;
|
||||
use glium::texture::{ClientFormat, RawImage2d};
|
||||
use std::borrow::Cow;
|
||||
@ -103,10 +102,7 @@ impl Renderer {
|
||||
texture: self.device_objects.texture.sampled()
|
||||
};
|
||||
let draw_params = DrawParameters {
|
||||
blending_function: Some(BlendingFunction::Addition {
|
||||
source: LinearBlendingFactor::SourceAlpha,
|
||||
destination: LinearBlendingFactor::OneMinusSourceAlpha
|
||||
}),
|
||||
blend: Blend::alpha_blending(),
|
||||
scissor: Some(Rect {
|
||||
left: cmd.clip_rect.x as u32,
|
||||
bottom: (height as f32 - cmd.clip_rect.w) as u32,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user