Browse Source

Examples: Emscripten+WebGPU: Remove use of deprecated ObjectBase<...>::Release in favor of ::MoveToCHandle (#7251)

pull/7262/head
Michał Cichoń 10 months ago
committed by GitHub
parent
commit
788747f863
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      examples/example_emscripten_wgpu/main.cpp

2
examples/example_emscripten_wgpu/main.cpp

@ -128,7 +128,7 @@ static bool InitWGPU()
wgpu::Surface surface = instance.CreateSurface(&surface_desc);
wgpu::Adapter adapter = {};
wgpu_preferred_fmt = (WGPUTextureFormat)surface.GetPreferredFormat(adapter);
wgpu_surface = surface.Release();
wgpu_surface = surface.MoveToCHandle();
return true;
}

Loading…
Cancel
Save