Upgrade to Glium 0.9.0

This commit is contained in:
Joonas Javanainen 2015-09-27 15:59:46 +03:00
parent 05b3067aba
commit 32f789ae26
3 changed files with 5 additions and 9 deletions

View File

@ -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

View File

@ -16,7 +16,7 @@ bitflags = "0.3"
libc = "0.1"
[dependencies.glium]
version = "0.8"
version = "0.9"
default-features = false
optional = true

View File

@ -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,