diff options
Diffstat (limited to 'components/script/dom/gpushadermodule.rs')
-rw-r--r-- | components/script/dom/gpushadermodule.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/components/script/dom/gpushadermodule.rs b/components/script/dom/gpushadermodule.rs index f245765b36a..a8b62fd96ea 100644 --- a/components/script/dom/gpushadermodule.rs +++ b/components/script/dom/gpushadermodule.rs @@ -82,10 +82,7 @@ impl GPUShaderModule { descriptor: RootedTraceableBox<GPUShaderModuleDescriptor>, comp: InRealm, ) -> DomRoot<GPUShaderModule> { - let program_id = device - .global() - .wgpu_id_hub() - .create_shader_module_id(device.id().0.backend()); + let program_id = device.global().wgpu_id_hub().create_shader_module_id(); let promise = Promise::new_in_current_realm(comp); let shader_module = GPUShaderModule::new( &device.global(), |