public void Unload() { if (!Compiled) { throw new InvalidOperationException("Cannot unload shader because its not loaded into the GPU."); } Compiled = false; Gl.DeleteProgram(ProgramId); }