Skip to content

Commit

Permalink
Fix broken particles crate
Browse files Browse the repository at this point in the history
  • Loading branch information
not-fl3 committed Feb 21, 2024
1 parent b22992a commit 8734788
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/raw_miniquad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ mod raw_miniquad {
VertexAttribute::new("uv", VertexFormat::Float2),
],
shader,
Default::default(),
);

Stage { pipeline, bindings }
Expand Down
2 changes: 1 addition & 1 deletion particles/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "macroquad-particles"
version = "0.2.0"
version = "0.2.1"
authors = ["Fedor Logachev <[email protected]>"]
edition = "2018"
license = "MIT/Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions particles/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ impl Emitter {
};

let blend_mode = config.blend_mode.blend_state();
let pipeline = ctx.new_pipeline_with_params(
let pipeline = ctx.new_pipeline(
&[
BufferLayout::default(),
BufferLayout {
Expand Down Expand Up @@ -614,7 +614,7 @@ impl Emitter {
)
.unwrap();

let post_processing_pipeline = ctx.new_pipeline_with_params(
let post_processing_pipeline = ctx.new_pipeline(
&[BufferLayout::default(), BufferLayout::default()],
&[
VertexAttribute::with_buffer("pos", VertexFormat::Float2, 0),
Expand Down

0 comments on commit 8734788

Please sign in to comment.