Fixed compilation issue caused by OnUnload access modifier changed (public -> protected).
This commit is contained in:
parent
08f40b7c8c
commit
c65d6789b0
7 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue