private void reloadShadersToolStripMenuItem_Click(object sender, EventArgs e) { // Make sure the context is current on this thread. modelViewport.PauseRendering(); // Force the shaders to be generated again. Rendering.ShaderContainer.ReloadShaders(); modelViewport.RestartRendering(); }