mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 20:55:37 +00:00
Fix NRE in operator== and operator!=
This commit is contained in:
parent
3ab17902de
commit
3fd9f2cc3a
|
@ -129,6 +129,11 @@ namespace OpenTK.Graphics
|
|||
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue