Пример #1
0
 private unsafe void ClearTexture(GLContext context)
 {
     if (_texId != 0)
     {
         uint id = _texId;
         context.glDeleteTextures(1, &id);
         _texId = 0;
     }
 }
Пример #2
0
 public unsafe void Delete()
 {
     if ((_context != null) && (_id != 0))
     {
         uint id = _id;
         _context.glDeleteTextures(1, &id);
         _id      = 0;
         _context = null;
     }
 }