Skip to content

Commit

Permalink
Fix the system and scene keys not being exposed correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
redstrate committed Nov 3, 2024
1 parent 9c1df8b commit 394e83d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

6 changes: 4 additions & 2 deletions src/shpk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ pub extern "C" fn physis_parse_shpk(buffer: physis_Buffer) -> physis_SHPK {
mem::forget(bytecode);
}

let mut system_keys = shpk.material_keys.clone();
let mut scene_keys = shpk.material_keys.clone();
let mut system_keys = shpk.system_keys.clone();
let mut scene_keys = shpk.scene_keys.clone();
let mut material_keys = shpk.material_keys.clone();
let mut material_params = shpk.material_parameters.clone();

Expand All @@ -174,6 +174,8 @@ pub extern "C" fn physis_parse_shpk(buffer: physis_Buffer) -> physis_SHPK {

mem::forget(c_vertex_shaders);
mem::forget(c_fragment_shaders);
mem::forget(system_keys);
mem::forget(scene_keys);
mem::forget(material_keys);
mem::forget(material_params);

Expand Down

0 comments on commit 394e83d

Please sign in to comment.