Fix uniform texture naming

The shaders refer to the texture with name "tex", and the name must
match on the Rust code side.

Fixes #17
This commit is contained in:
Joonas Javanainen 2016-03-26 18:42:39 +02:00
parent 5a5bbcc443
commit 550b8d1c1c

View File

@ -99,7 +99,7 @@ impl Renderer {
];
let uniforms = uniform! {
matrix: matrix,
texture: self.device_objects.texture.sampled()
tex: self.device_objects.texture.sampled()
};
let draw_params = DrawParameters {
blend: Blend::alpha_blending(),