Skip to content

Commit

Permalink
cargo update DX12 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Uriopass committed Jan 22, 2024
1 parent 8c0d768 commit a73ee96
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 21 deletions.
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions engine/src/gfx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,7 @@ impl GfxContext {
width: win_width,
height: win_height,
present_mode: wgpu::PresentMode::Fifo,
desired_maximum_frame_latency: if adapter.get_info().backend == Backend::Dx12 {
3
} else {
2
}, // TODO: fix when wgpu 0.19.1 is released
desired_maximum_frame_latency: 2,
alpha_mode: CompositeAlphaMode::Auto,
view_formats: vec![],
};
Expand Down
4 changes: 1 addition & 3 deletions networking/src/connections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,7 @@ mod tests {
receiver.recv(&s[..2], |_| panic!("should not be called"));
receiver.recv(&s[2..], |_| panic!("should not be called"));
receiver.recv(&[1u8; 3], |_| panic!("should not be called"));
receiver.recv(&[2u8; 3], |d| {
assert_eq!(d, vec![1u8, 1u8, 1u8, 2u8, 2u8])
});
receiver.recv(&[2u8; 3], |d| assert_eq!(d, vec![1u8, 1u8, 1u8, 2u8, 2u8]));
assert_eq!(receiver.buf, vec![2u8]);
assert_eq!(receiver.last_frame_size, 0);

Expand Down

0 comments on commit a73ee96

Please sign in to comment.