summaryrefslogtreecommitdiffstats
path: root/glow/src
diff options
context:
space:
mode:
Diffstat (limited to 'glow/src')
-rw-r--r--glow/src/triangle/solid.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/glow/src/triangle/solid.rs b/glow/src/triangle/solid.rs
index 311e3704..fb3d40c3 100644
--- a/glow/src/triangle/solid.rs
+++ b/glow/src/triangle/solid.rs
@@ -63,13 +63,15 @@ impl Program {
}
if color != &self.uniform_data.color {
+ let [r, g, b, a] = color.into_linear();
+
unsafe {
gl.uniform_4_f32(
Some(&self.uniform_data.color_location),
- color.r,
- color.g,
- color.b,
- color.a,
+ r,
+ g,
+ b,
+ a,
);
}