Fixed compilation issue caused by OnUnload access modifier changed (public -> protected).

This commit is contained in:
the_fiddler 2009-10-21 13:51:39 +00:00
parent 7066b8bb8b
commit b8bdfcd3a5
7 changed files with 7 additions and 7 deletions

View file

@ -107,7 +107,7 @@ namespace Examples.Tutorial
#region OnUnload
public override void OnUnload(EventArgs e)
protected override void OnUnload(EventArgs e)
{
GL.DeleteLists(lists[0], num_lists);
}

View file

@ -62,7 +62,7 @@ namespace Examples.Tutorial
#region OnUnload
public override void OnUnload(EventArgs e)
protected override void OnUnload(EventArgs e)
{
GL.DeleteTextures(1, ref texture);
}

View file

@ -201,7 +201,7 @@ namespace Examples.Tutorial
GL.BindTexture(TextureTarget.Texture2D, 0); // bind default texture
}
public override void OnUnload(EventArgs e)
protected override void OnUnload(EventArgs e)
{
// Clean up what we allocated before exiting
if (ColorTexture != 0)

View file

@ -188,7 +188,7 @@ namespace Examples.Tutorial
}
}
public override void OnUnload(EventArgs e)
protected override void OnUnload(EventArgs e)
{
if (shaderProgram != 0)
GL.DeleteProgram(shaderProgram);

View file

@ -869,7 +869,7 @@ namespace Examples.Tutorial
}
public override void OnUnload(EventArgs e)
protected override void OnUnload(EventArgs e)
{
if (shaderProgramBox != 0)
GL.DeleteProgram(shaderProgramBox);

View file

@ -194,7 +194,7 @@ namespace Examples.Tutorial
#region OnUnload
public override void OnUnload(EventArgs e)
protected override void OnUnload(EventArgs e)
{
if (TextureObject != 0)
GL.DeleteTextures(1, ref TextureObject);

View file

@ -170,7 +170,7 @@ namespace Examples.Tutorial
#region OnUnload
public override void OnUnload(EventArgs e)
protected override void OnUnload(EventArgs e)
{
if (shader_program != 0)
GL.DeleteProgram(shader_program);