mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 15:35:34 +00:00
Corrected a couple of compiler warnings.
This commit is contained in:
parent
3a534413ff
commit
794ba2fa41
|
@ -179,6 +179,7 @@ namespace OpenTK.Platform
|
||||||
.GetField("ErrorExceptions", System.Reflection.BindingFlags.Static |
|
.GetField("ErrorExceptions", System.Reflection.BindingFlags.Static |
|
||||||
System.Reflection.BindingFlags.NonPublic)
|
System.Reflection.BindingFlags.NonPublic)
|
||||||
.SetValue(null, true);
|
.SetValue(null, true);
|
||||||
|
throw_on_error = true;
|
||||||
}
|
}
|
||||||
else if (!value && throw_on_error)
|
else if (!value && throw_on_error)
|
||||||
{
|
{
|
||||||
|
@ -186,6 +187,7 @@ namespace OpenTK.Platform
|
||||||
.GetField("ErrorExceptions", System.Reflection.BindingFlags.Static |
|
.GetField("ErrorExceptions", System.Reflection.BindingFlags.Static |
|
||||||
System.Reflection.BindingFlags.NonPublic)
|
System.Reflection.BindingFlags.NonPublic)
|
||||||
.SetValue(null, false);
|
.SetValue(null, false);
|
||||||
|
throw_on_error = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ namespace OpenTK.Platform.Windows
|
||||||
private WinGLContext glContext;
|
private WinGLContext glContext;
|
||||||
private DisplayMode mode = new DisplayMode();
|
private DisplayMode mode = new DisplayMode();
|
||||||
|
|
||||||
private bool fullscreen = false;
|
private bool fullscreen;
|
||||||
private bool disposed;
|
private bool disposed;
|
||||||
private bool isExiting;
|
private bool isExiting;
|
||||||
private bool exists;
|
private bool exists;
|
||||||
|
|
|
@ -302,12 +302,10 @@ namespace OpenTK.Platform.Windows
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new ApplicationException("Windows raw keyboard driver received invalid data.");
|
throw new ApplicationException("Windows raw keyboard driver received invalid data.");
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in a new issue