Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jannik4 committed Aug 14, 2024
1 parent 1d38975 commit b75d72d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: |
wasm-bindgen --no-typescript --out-name bevy_game --out-dir wasm --target web target/wasm32-unknown-unknown/release-wasm/${{ env.binary }}.wasm
wasm-opt -Os -o wasm/bevy_game_bg.wasm wasm/bevy_game_bg.wasm
cp -r assets wasm/ || true # Try to copy, but ignore if it can't copy if source directory does not exist
cp -r -L assets wasm/ || true # Try to copy, but ignore if it can't copy if source directory does not exist
- name: Package as a zip
working-directory: ./wasm
Expand Down
2 changes: 2 additions & 0 deletions src/game/instanced.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ fn prepare_instance_buffers(
struct Globals {
elapsed_seconds: f32,
zoom: f32,
_padding: [u32; 2],
}

fn extract_globals(
Expand All @@ -174,6 +175,7 @@ fn extract_globals(
Some(zoom) => zoom.current,
None => 1.0,
},
_padding: [0; 2],
});
}

Expand Down

0 comments on commit b75d72d

Please sign in to comment.