diff --git a/src/states_screens/options/options_screen_video.cpp b/src/states_screens/options/options_screen_video.cpp index 7ca723988..44c0f35e5 100644 --- a/src/states_screens/options/options_screen_video.cpp +++ b/src/states_screens/options/options_screen_video.cpp @@ -644,6 +644,7 @@ void OptionsScreenVideo::eventCallback(Widget* widget, const std::string& name, void OptionsScreenVideo::tearDown() { +#ifndef SERVER_ONLY if (m_prev_adv_pipline != UserConfigParams::m_dynamic_lights && CVS->isGLSL()) { @@ -656,6 +657,7 @@ void OptionsScreenVideo::tearDown() Screen::tearDown(); // save changes when leaving screen user_config->saveConfig(); +#endif } // tearDown // ----------------------------------------------------------------------------