FNA-XNA / FNA

FNA - Accuracy-focused XNA4 reimplementation for open platforms
https://fna-xna.github.io/
2.61k stars 265 forks source link

Emergency dispose graphics resources without double free #462

Closed thatcosmonaut closed 10 months ago

thatcosmonaut commented 10 months ago

Resolves #461

Two changes from the reverted patch:

It should be noted that calling Dispose from a finalizer is a very bad idea, but at least it shouldn't crash now!

thatcosmonaut commented 10 months ago

Superseded by https://github.com/FNA-XNA/FNA/commit/2f8052ff88d3ec3999fd463b5a33370f226eb216