mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-03 17:05:44 +00:00
Correct screwy formatting.
This commit is contained in:
parent
3cf07ff790
commit
af1e3bdf0f
|
@ -341,15 +341,21 @@ namespace OpenTK
|
||||||
Debug.Print("Disposing of Cocoa context.");
|
Debug.Print("Disposing of Cocoa context.");
|
||||||
|
|
||||||
using (var pool = new NSAutoreleasePool())
|
using (var pool = new NSAutoreleasePool())
|
||||||
{if (!NSApplication.IsUIThread)
|
{
|
||||||
{ return;}
|
if (!NSApplication.IsUIThread)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
|
||||||
if (IsCurrent)
|
}
|
||||||
{ Cocoa.SendVoid(NSOpenGLContext, Selector.Get("clearCurrentContext"));}
|
|
||||||
Cocoa.SendVoid(Handle.Handle, Selector.Get("clearDrawable"));
|
|
||||||
Cocoa.SendVoid(Handle.Handle, Selector.Get("release"));
|
|
||||||
|
|
||||||
|
if (IsCurrent)
|
||||||
|
{
|
||||||
|
Cocoa.SendVoid(NSOpenGLContext, Selector.Get("clearCurrentContext"));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Cocoa.SendVoid(Handle.Handle, Selector.Get("clearDrawable"));
|
||||||
|
Cocoa.SendVoid(Handle.Handle, Selector.Get("release"));
|
||||||
}
|
}
|
||||||
|
|
||||||
Handle = ContextHandle.Zero;
|
Handle = ContextHandle.Zero;
|
||||||
|
|
Loading…
Reference in a new issue