Skip to content

Commit

Permalink
Fix compiling on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed May 23, 2024
1 parent bb64822 commit 721d41c
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 @@ -209,7 +209,7 @@ impl crate::Surface for super::Surface {
if let Some(view) = self.view {
let main_layer: *mut AnyObject = msg_send![view.as_ptr(), layer];
let bounds: CGRect = msg_send![main_layer, bounds];
let () = msg_send![*render_layer, setFrame: bounds];
render_layer.setFrame(bounds);
}
}
render_layer.setDevice(Some(&device_raw));
Expand Down

0 comments on commit 721d41c

Please sign in to comment.