protected virtual void Dispose(bool disposing) { if (DepthID != 0 || BufferID != 0 || TextureID != null) { Gl.DeleteTextures(TextureID.Length, TextureID); Gl.DeleteFramebuffer(BufferID); Gl.DeleteFramebuffer(DepthID); BufferID = 0; DepthID = 0; TextureID = null; } }