示例#1
0
 public void Dispose()
 {
     if (ShaderID != 0)
     {
         Gl.DeleteShader(ShaderID);
         this.ShaderID = 0;
     }
 }
示例#2
0
 protected virtual void Dispose(bool disposing)
 {
     if (ShaderID != 0)
     {
         Gl.DeleteShader(ShaderID);
         ShaderID = 0;
     }
 }
示例#3
0
 protected override void Release() => Gl.DeleteShader(_hdc);
示例#4
0
 /// <summary>
 /// Delete a ShaderObject name.
 /// </summary>
 /// <param name="ctx">
 /// A <see cref="GraphicsContext"/> used for deleting this object name.
 /// </param>
 /// <param name="name">
 /// A <see cref="UInt32"/> that specify the object name to delete.
 /// </param>
 protected override void DeleteName(GraphicsContext ctx, uint name)
 {
     // Delete shader object
     Gl.DeleteShader(name);
 }