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

View file

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

View file

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