diff options
author | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-01-04 13:56:37 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-01-04 13:58:49 +0100 |
commit | 4d32444bf731f75c29e6bad7777ae8eacb96bcdc (patch) | |
tree | 2d22c9ceec33a711826b0e093acfb1b1848c95b4 /components/script/dom/crypto.rs | |
parent | 5ad9207a99295284f1525844b734f189d1a25255 (diff) | |
download | servo-4d32444bf731f75c29e6bad7777ae8eacb96bcdc.tar.gz servo-4d32444bf731f75c29e6bad7777ae8eacb96bcdc.zip |
webgl: Unify accessing ArrayBufferView objects
This fixes an invalid length being reported from
float32_array_to_slice (which used the byte length), and also to
generalize getting data from a JS array buffer view, to reduce code
duplication.
The pending type safety issues, like where we could send a UInt16Array
where we expect a Float32 one, should be solved by IDL bindings in
some cases, like uniform[n]fv or vertexAttrib[n]fv, and with extra
checks in others, like in the pending texImage2D(..., ArrayBufferView).
Diffstat (limited to 'components/script/dom/crypto.rs')
0 files changed, 0 insertions, 0 deletions