Corrected a couple of compiler warnings.

This commit is contained in:
the_fiddler 2007-08-31 16:10:38 +00:00
parent 3a534413ff
commit 794ba2fa41
3 changed files with 3 additions and 3 deletions

View file

@ -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;
} }
} }
} }

View file

@ -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;

View file

@ -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