Remove a lock on a read-only operation, in IsCurrent()

This commit is contained in:
Shane Kelly 2017-12-09 12:19:41 +02:00
parent 0c1082892d
commit e335698c07

View file

@ -346,10 +346,6 @@ namespace OpenTK.Platform.X11
currentWindow = w;
}
if (!result)
{
throw new GraphicsContextException("Failed to make context current.");
@ -366,13 +362,10 @@ namespace OpenTK.Platform.X11
public override bool IsCurrent
{
get
{
using (new XLock(Display))
{
return Glx.GetCurrentContext() == Handle.Handle;
}
}
}
public override int SwapInterval
{