Fixed an NRE that could occur under some circumstances.
This commit is contained in:
parent
d15062a6f5
commit
8a6171e28b
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ namespace OpenTK
|
||||||
|
|
||||||
public static implicit operator IntPtr(ContextHandle c)
|
public static implicit operator IntPtr(ContextHandle c)
|
||||||
{
|
{
|
||||||
return c.handle;
|
return c != null ? c.handle : IntPtr.Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static implicit operator ContextHandle(IntPtr p)
|
public static implicit operator ContextHandle(IntPtr p)
|
||||||
|
|
Loading…
Reference in a new issue