Fixed server only build

This commit is contained in:
Deve 2019-04-18 06:57:08 +02:00
parent 60520dc6c3
commit ab18b6cba8

View File

@ -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
// ----------------------------------------------------------------------------