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