Skip to content

Commit

Permalink
chore: updated to latest wgpu and winit version.
Browse files Browse the repository at this point in the history
  • Loading branch information
ElhamAryanpur committed Jan 5, 2024
1 parent 9f10faf commit 4e213a7
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 125 deletions.
89 changes: 34 additions & 55 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "blue_engine"
version = "0.5.0"
version = "0.5.1"
authors = ["Elham Aryanpur <[email protected]>"]
edition = "2021"
description = "General-Purpose, Easy-to-use, Fast, and Portable graphics engine"
Expand All @@ -22,11 +22,11 @@ NON_FILL_POLYGON_MODE = []
[dependencies]
image = { version = "0.24" }
futures = "0.3"
winit = { version = "0.29" }
winit = { version = "0.29.8", features = ["rwh_05"] }
wgpu = { version = "0.18" }
bytemuck = { version = "1.14", features = ["derive"] }
winit_input_helper = "0.15"
anyhow = "1.0"
wgpu = { version = "0.18" }
downcast = "0.11"
nalgebra-glm = "0.18"
# debug logs
Expand Down
3 changes: 1 addition & 2 deletions src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ impl Renderer {
backends,
..Default::default()
});

#[cfg(not(feature = "android"))]
let surface = Some(unsafe { instance.create_surface(&window) }?);
let surface = Some(unsafe { instance.create_surface(&window)? });
#[cfg(feature = "android")]
let surface = None;

Expand Down
Loading

0 comments on commit 4e213a7

Please sign in to comment.