Skip to content

Commit

Permalink
Update pixels to 0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
dtcristo committed Dec 20, 2022
1 parent 6935c0e commit e87d2cc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [Unreleased]

### Changed

- Updated `pixels` to 0.11.

## [0.7.0] - 2022-11-14

### Changed
Expand Down
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ x11 = ["bevy/x11"]

[dependencies]
bevy = { version = "0.9", default_features = false, features = ["bevy_winit"] }
pixels = "0.10"
pixels = "0.11"

[target.'cfg(target_arch = "wasm32")'.dependencies]
pollster = "0.2"
wgpu = { version = "0.13", features = ["webgl"] }

[dev-dependencies]
rand = "0.8"
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl PixelsPlugin {
fn resize_surface_to_window(resource: &mut ResMut<PixelsResource>, windows: &Res<Windows>) {
let window = windows.get(resource.window_id).unwrap();

resource
let _ = resource
.pixels
.resize_surface(window.physical_width(), window.physical_height());
}
Expand Down

0 comments on commit e87d2cc

Please sign in to comment.