Fixed an NRE that could occur under some circumstances.

This commit is contained in:
the_fiddler 2008-03-15 11:26:31 +00:00
parent 9d1f1ecc4c
commit 5ca7f5acd8

View file

@ -52,7 +52,7 @@ namespace OpenTK
public static implicit operator IntPtr(ContextHandle c)
{
return c.handle;
return c != null ? c.handle : IntPtr.Zero;
}
public static implicit operator ContextHandle(IntPtr p)