rust3ds / citro3d-rs

Rust bindings and safe wrappers for citro3d
https://rust3ds.github.io/citro3d-rs
14 stars 11 forks source link

Use an Rc to keep render queue alive #38

Closed ian-h-chamberlain closed 9 months ago

ian-h-chamberlain commented 10 months ago

Fixes #35

Basically, give render targets an Rc to the global render queue to make sure it isn't freed/unlinked until after the render targets themselves are freed. This may not end up being the best way to deal with this but I think it should at least solve the immediate problem.

cc @Jhynjhiruu

Jhynjhiruu commented 10 months ago

I'll mess around with it when I have some free time, but it looks like this should solve the issue just fine.