Correct screwy formatting.

This commit is contained in:
Jarl Gullberg 2017-08-04 17:41:45 +02:00
parent 3cf07ff790
commit af1e3bdf0f
No known key found for this signature in database
GPG key ID: 750FF6F6BDA72D23

View file

@ -341,15 +341,21 @@ namespace OpenTK
Debug.Print("Disposing of Cocoa context.");
using (var pool = new NSAutoreleasePool())
{if (!NSApplication.IsUIThread)
{ return;}
{
if (!NSApplication.IsUIThread)
{
return;
}
if (IsCurrent)
{ Cocoa.SendVoid(NSOpenGLContext, Selector.Get("clearCurrentContext"));}
{
Cocoa.SendVoid(NSOpenGLContext, Selector.Get("clearCurrentContext"));
}
Cocoa.SendVoid(Handle.Handle, Selector.Get("clearDrawable"));
Cocoa.SendVoid(Handle.Handle, Selector.Get("release"));
}
Handle = ContextHandle.Zero;