Exemplo n.º 1
0
        private bool isDisposed = false; // To detect redundant calls

        protected virtual void Dispose(bool disposing)
        {
            if (!isDisposed)
            {
                isDisposed = true;
                if (vboID != 0)
                {
                    GL_Cleanup.AddVBO(this.vboID);
                    vboID = 0;
                }
            }
        }
Exemplo n.º 2
0
        public void Dispose()
        {
            if (DepthID != 0 || BufferID != 0 || TextureID != null)
            {
                GL_Cleanup.AddTextures(TextureID.Length, TextureID);
                GL_Cleanup.AddFBO(DepthID, BufferID);

                BufferID  = 0;
                DepthID   = 0;
                TextureID = null;
            }
        }