Introduce jsmanaged_array

This commit is contained in:
Anthony Ramine 2016-12-06 12:40:46 -10:00
parent f20361179d
commit 535765907d
2 changed files with 17 additions and 10 deletions

View file

@ -26,7 +26,7 @@ pub enum TexParameterValue {
const MAX_LEVEL_COUNT: usize = 31;
const MAX_FACE_COUNT: usize = 6;
unsafe_no_jsmanaged_fields!([ImageInfo; MAX_LEVEL_COUNT * MAX_FACE_COUNT]);
jsmanaged_array!(MAX_LEVEL_COUNT * MAX_FACE_COUNT);
#[dom_struct]
pub struct WebGLTexture {