Skip to content

Commit

Permalink
Address review
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Feb 15, 2023
1 parent b918551 commit 381f4ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion wgpu/src/backend/direct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ impl fmt::Debug for Context {
}

impl Context {
#[cfg(any(not(target_arch = "wasm32"), target_os = "emscripten"))]
pub unsafe fn from_hal_instance<A: wgc::hub::HalApi>(hal_instance: A::Instance) -> Self {
Self(unsafe {
wgc::hub::Global::from_hal_instance::<A>(
Expand Down
6 changes: 5 additions & 1 deletion wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,11 @@ impl Instance {
/// # Safety
///
/// Refer to the creation of wgpu-hal Instance for every backend.
#[cfg(any(not(target_arch = "wasm32"), target_os = "emscripten"))]
#[cfg(any(
not(target_arch = "wasm32"),
target_os = "emscripten",
feature = "webgl"
))]
pub unsafe fn from_hal<A: wgc::hub::HalApi>(hal_instance: A::Instance) -> Self {
Self {
context: Arc::new(unsafe {
Expand Down

0 comments on commit 381f4ea

Please sign in to comment.