From 1eeb0366d4fafe122a7fd0bc1c6ad7fc60993c10 Mon Sep 17 00:00:00 2001 From: Karsten Schmidt Date: Thu, 1 Oct 2015 22:24:57 +0100 Subject: [PATCH] [webgl] update color handling (deref) --- geom-webgl/src/shaders.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geom-webgl/src/shaders.org b/geom-webgl/src/shaders.org index 06f9edad..5effe095 100644 --- a/geom-webgl/src/shaders.org +++ b/geom-webgl/src/shaders.org @@ -104,7 +104,7 @@ Special cases: (= :vec3 type) (fn [x] (if (number? x) - (.call setter gl loc (-> x col/int24 col/as-rgba col/unwrap (subvec 0 3) u-cast)) + (.call setter gl loc (-> x col/int24 col/as-rgba deref (subvec 0 3) u-cast)) (.call setter gl loc (if (arrays/typed-array? x) x (u-cast x))))) :else (fn [x]