Пример #1
0
 public override void Release()
 {
     if (vao != null)
     {
         vao.Release();
         vao = null;
     }
     if (ebo != null)
     {
         ebo.Release();
         ebo = null;
     }
     if (vbo != null)
     {
         vbo.Release();
         vbo = null;
     }
 }
Пример #2
0
        public override void Release()
        {
            if (vbo != null)
            {
                vbo.Release();
            }

            if (ebo != null)
            {
                ebo.Release();
            }

            if (vao != null)
            {
                vao.Release();
            }

            if (Mat != null)
            {
                Mat.Release();
            }
        }