mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-03 07:01:01 +00:00
Fix NRE in operator== and operator!=
This commit is contained in:
parent
1caf0c77eb
commit
643e28a8f8
|
@ -129,6 +129,11 @@ namespace OpenTK.Graphics
|
||||||
|
|
||||||
public static bool operator== (DisplayResolution left, DisplayResolution right)
|
public static bool operator== (DisplayResolution left, DisplayResolution right)
|
||||||
{
|
{
|
||||||
|
if (((object)left) == null && ((object)right) == null)
|
||||||
|
return true;
|
||||||
|
else if ((((object)left) == null && ((object)right) != null) ||
|
||||||
|
(((object)left) != null && ((object)right) == null))
|
||||||
|
return false;
|
||||||
return left.Equals(right);
|
return left.Equals(right);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue