Skip to content

Commit

Permalink
Add a link to the winit-related issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jinleili committed Jul 7, 2023
1 parent 1a89abc commit 54ed0bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/common/src/framework.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ fn start<E: Example>(
},
..
} => {
// Once winit is fixed, the detection conditions here can be removed.
// https://github.com/rust-windowing/winit/issues/2876
let max_dimension = adapter.limits().max_texture_dimension_2d;
if size.width > max_dimension || size.height > max_dimension {
log::warn!(
Expand Down

0 comments on commit 54ed0bf

Please sign in to comment.