Skip to content

Commit

Permalink
Added self to present_mode for Cushy
Browse files Browse the repository at this point in the history
  • Loading branch information
ecton committed Mar 17, 2024
1 parent 51e6b13 commit c87af7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ where

/// Returns the swap chain present mode to use for this window.
#[must_use]
fn present_mode() -> wgpu::PresentMode {
fn present_mode(&self) -> wgpu::PresentMode {
wgpu::PresentMode::AutoVsync
}

Expand Down Expand Up @@ -945,7 +945,7 @@ where
format: swapchain_format,
width: window.inner_size().width,
height: window.inner_size().height,
present_mode: T::present_mode(),
present_mode: behavior.present_mode(),
alpha_mode: behavior.composite_alpha_mode(&swapchain_capabilities.alpha_modes),
view_formats: vec![],
desired_maximum_frame_latency: 2,
Expand Down

0 comments on commit c87af7e

Please sign in to comment.