Duality.Resources.ShaderProgram.OnDisposing C# (CSharp) 메소드

OnDisposing() 보호된 메소드

protected OnDisposing ( bool manually ) : void
manually bool
리턴 void
        protected override void OnDisposing(bool manually)
        {
            base.OnDisposing(manually);
            if (DualityApp.ExecContext != DualityApp.ExecutionContext.Terminated &&
                this.glProgramId != 0)
            {
                this.DetachShaders();
                GL.DeleteProgram(this.glProgramId);
                this.glProgramId = 0;
            }
        }