aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglsampler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webglsampler.rs')
-rw-r--r--components/script/dom/webglsampler.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/webglsampler.rs b/components/script/dom/webglsampler.rs
index dc031100b1f..b7c926e0839 100644
--- a/components/script/dom/webglsampler.rs
+++ b/components/script/dom/webglsampler.rs
@@ -83,7 +83,7 @@ impl WebGLSampler {
}
}
- pub(crate) fn new(context: &WebGLRenderingContext) -> DomRoot<Self> {
+ pub(crate) fn new(context: &WebGLRenderingContext, can_gc: CanGc) -> DomRoot<Self> {
let (sender, receiver) = webgl_channel().unwrap();
context.send_command(WebGLCommand::GenerateSampler(sender));
let id = receiver.recv().unwrap();
@@ -91,7 +91,7 @@ impl WebGLSampler {
reflect_dom_object(
Box::new(Self::new_inherited(context, id)),
&*context.global(),
- CanGc::note(),
+ can_gc,
)
}