mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-06-18 01:40:09 +00:00
Fixed an NRE that could occur under some circumstances.
This commit is contained in:
parent
d15062a6f5
commit
8a6171e28b
|
@ -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