Skip to content

Commit

Permalink
[webgl] update color handling (deref)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Oct 1, 2015
1 parent 43784f3 commit 1eeb036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geom-webgl/src/shaders.org
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 1eeb036

Please sign in to comment.