aboutsummaryrefslogtreecommitdiff
path: root/src/renderer/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/mod.rs')
-rw-r--r--src/renderer/mod.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs
index b88357b3..9495d8a0 100644
--- a/src/renderer/mod.rs
+++ b/src/renderer/mod.rs
@@ -32,12 +32,7 @@ pub struct PackedVertex {
v: f32,
}
-#[derive(Debug)]
-pub struct Rgb {
- pub r: f32,
- pub g: f32,
- pub b: f32,
-}
+use super::Rgb;
impl QuadRenderer {
// TODO should probably hand this a transform instead of width/height
@@ -103,7 +98,7 @@ impl QuadRenderer {
self.program.activate();
unsafe {
// set color
- gl::Uniform3f(self.program.u_color, color.r, color.g, color.b);
+ gl::Uniform3i(self.program.u_color, color.r as i32, color.g as i32, color.b as i32);
}
let rect = get_rect(glyph, x, y);