From a6635ecad7865e1f66e69626f4f7239974dc83a3 Mon Sep 17 00:00:00 2001 From: Deve Date: Wed, 17 Apr 2019 23:30:20 +0200 Subject: [PATCH] Don't recreate device for legacy pipeline when video options are changed --- src/states_screens/options/options_screen_video.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/states_screens/options/options_screen_video.cpp b/src/states_screens/options/options_screen_video.cpp index 74ef03ab9..7ca723988 100644 --- a/src/states_screens/options/options_screen_video.cpp +++ b/src/states_screens/options/options_screen_video.cpp @@ -644,8 +644,11 @@ void OptionsScreenVideo::eventCallback(Widget* widget, const std::string& name, void OptionsScreenVideo::tearDown() { - if (m_prev_adv_pipline != UserConfigParams::m_dynamic_lights) + if (m_prev_adv_pipline != UserConfigParams::m_dynamic_lights && + CVS->isGLSL()) + { irr_driver->sameRestart(); + } else if (m_prev_img_quality != getImageQuality()) { irr_driver->setMaxTextureSize();