Пример #1
0
        public void Unload()
        {
            if (!Compiled)
            {
                throw new InvalidOperationException("Cannot unload shader because its not loaded into the GPU.");
            }

            Compiled = false;
            Gl.DeleteProgram(ProgramId);
        }