diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-16 15:18:27 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-16 15:18:27 +0200 |
| commit | 6847840a3bc4b4df9bfdceea0f5ed80c9e109b91 (patch) | |
| tree | 6237973dd3ba7ac67a6ad433a6f9979c59e86c99 /src/OpenTKGameWindow.cs | |
| parent | 9d6c19a3a9890c348fda39734e83b4eb69533a69 (diff) | |
typo and debug
Diffstat (limited to 'src/OpenTKGameWindow.cs')
| -rwxr-xr-x | src/OpenTKGameWindow.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/OpenTKGameWindow.cs b/src/OpenTKGameWindow.cs index bc1ebda9..ff1ffeed 100755 --- a/src/OpenTKGameWindow.cs +++ b/src/OpenTKGameWindow.cs @@ -92,11 +92,13 @@ namespace go /// <summary> Remove all Graphic objects from top container </summary>
public void ClearInterface()
{
- foreach (GraphicObject g in GraphicObjects) {
+ int i = 0;
+ while (GraphicObjects.Count>0) {
+ GraphicObject g = GraphicObjects [i];
g.Visible = false;
g.ClearBinding ();
+ GraphicObjects.RemoveAt (0);
}
- GraphicObjects.Clear ();
}
public void Quit ()
{
|