GLWpfControl
GLWpfControl copied to clipboard
Improve resource disposal of `GLWpfControl`
Changes
GLWpfControl.OnUnloaded()
was updated to only release resorces if the control hasn't been disposed yet.
Behavior
Before
OnUnloaded
could be fired after the disposal of the control.
After
Resources are being released in OnUnloaded
only when the control is active (_isStarted
is true, which is basically from the moment it was started to the moment it's disposed).