protected override void OnDisposing(bool manually) { base.OnDisposing(manually); if (DualityApp.ExecContext != DualityApp.ExecutionContext.Terminated && this.glShaderId != 0) { GL.DeleteShader(this.glShaderId); this.glShaderId = 0; } }