Ejemplo n.º 1
0
 /// <summary>Releases the resources used by this engine</summary>
 public virtual void Dispose()
 {
     if (this.program != IntPtr.Zero)
     {
         EngineAPI.DestroyProgram(this.program);
         this.program = IntPtr.Zero;
         this.loaded  = false;
     }
     GC.SuppressFinalize((object)this);
     GC.KeepAlive((object)this);
 }