Skip to content

Commit

Permalink
example: Fix wrong target_os check. (#36)
Browse files Browse the repository at this point in the history
Bring over the new version of this function from `vello`.
  • Loading branch information
waywardmonkeys authored Jul 25, 2024
1 parent e0a10f1 commit 2a3b0a3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions examples/with_winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ struct Args {
}

fn default_threads() -> usize {
#![allow(unreachable_code)]
#[cfg(target_os = "mac")]
{
return 1;
}
0
#[cfg(target_os = "macos")]
return 1;
#[cfg(not(target_os = "macos"))]
return 0;
}

struct RenderState<'s> {
Expand Down

0 comments on commit 2a3b0a3

Please sign in to comment.