diff options
Diffstat (limited to 'components/script/dom/webglbuffer.rs')
-rw-r--r-- | components/script/dom/webglbuffer.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/components/script/dom/webglbuffer.rs b/components/script/dom/webglbuffer.rs index b1346a69969..c702b002279 100644 --- a/components/script/dom/webglbuffer.rs +++ b/components/script/dom/webglbuffer.rs @@ -56,14 +56,18 @@ impl WebGLBuffer { receiver .recv() .unwrap() - .map(|id| WebGLBuffer::new(context, id)) + .map(|id| WebGLBuffer::new(context, id, CanGc::note())) } - pub(crate) fn new(context: &WebGLRenderingContext, id: WebGLBufferId) -> DomRoot<Self> { + pub(crate) fn new( + context: &WebGLRenderingContext, + id: WebGLBufferId, + can_gc: CanGc, + ) -> DomRoot<Self> { reflect_dom_object( Box::new(WebGLBuffer::new_inherited(context, id)), &*context.global(), - CanGc::note(), + can_gc, ) } } |