Skip to content

Commit

Permalink
[example] fix conserative-raster low res target getting zero sized on…
Browse files Browse the repository at this point in the history
… resize (#2318)

* [example] fix conserative-faster low res target getting zero sized on resize

* [sample] conservative-raster: fix low res target aspect ratio being wrong
  • Loading branch information
Wumpf authored Dec 26, 2021
1 parent 39b7a8a commit b0654e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu/examples/conservative-raster/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ impl Example {
.create_texture(&wgpu::TextureDescriptor {
label: Some("Low Resolution Target"),
size: wgpu::Extent3d {
width: config.width / 16,
height: config.width / 16,
width: (config.width / 16).max(1),
height: (config.height / 16).max(1),
depth_or_array_layers: 1,
},
mip_level_count: 1,
Expand Down
Binary file modified wgpu/examples/conservative-raster/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b0654e1

Please sign in to comment.