Skip to content

Commit

Permalink
update signature on dummy engine's with_surface
Browse files Browse the repository at this point in the history
  • Loading branch information
samizdatco committed Nov 12, 2024
1 parent 8f0454a commit 40e42a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct Engine { }
#[cfg(not(any(feature = "vulkan", feature = "metal")))]
impl Engine {
pub fn supported() -> bool { false }
pub fn with_surface<F>(_: &ImageInfo, _:F) -> Result<Data, String>
pub fn with_surface<F>(_: &ImageInfo, _:Option<usize>, _:F) -> Result<Data, String>
where F:FnOnce(&mut Surface) -> Result<Data, String>
{
Err("Compiled without GPU support".to_string())
Expand Down

0 comments on commit 40e42a1

Please sign in to comment.