Skip to content

Commit

Permalink
check on macOS target_os
Browse files Browse the repository at this point in the history
Co-authored-by: Mads Marquart <[email protected]>
  • Loading branch information
mockersf and madsmtm authored Nov 13, 2024
1 parent b13177a commit 9957ee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu-hal/src/metal/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ impl super::Surface {
let new_layer: *mut Object = msg_send![class!(CAMetalLayer), new];
let () = msg_send![root_layer, addSublayer: new_layer];

#[cfg(not(target_os = "ios"))]
#[cfg(target_os = "macos")]
{
// Automatically resize the sublayer's frame to match the
// superlayer's bounds.
Expand Down

0 comments on commit 9957ee7

Please sign in to comment.