mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 01:45:37 +00:00
Fixed NRE when calling Toolkit.Dispose() more than once.
This commit is contained in:
parent
f5a4a4bd96
commit
6a3838757c
|
@ -169,10 +169,13 @@ namespace OpenTK
|
|||
{
|
||||
lock (InitLock)
|
||||
{
|
||||
platform_factory.Dispose();
|
||||
platform_factory = null;
|
||||
toolkit = null;
|
||||
initialized = false;
|
||||
if (initialized)
|
||||
{
|
||||
platform_factory.Dispose();
|
||||
platform_factory = null;
|
||||
toolkit = null;
|
||||
initialized = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue