mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 16:35:36 +00:00
Fixed an NRE that could occur under some circumstances.
This commit is contained in:
parent
9d1f1ecc4c
commit
5ca7f5acd8
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue