From 61cb274313a13a7342af2d662c3d4fbe5000be5d Mon Sep 17 00:00:00 2001 From: Deve Date: Thu, 11 Apr 2019 18:20:23 +0200 Subject: [PATCH] Don't recreate device when legacy context is already created --- src/graphics/irr_driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/irr_driver.cpp b/src/graphics/irr_driver.cpp index 599e55df6..8b9c3aeb1 100644 --- a/src/graphics/irr_driver.cpp +++ b/src/graphics/irr_driver.cpp @@ -540,7 +540,7 @@ void IrrDriver::initDevice() // fixed pipeline in this case. if (!ProfileWorld::isNoGraphics() && (GraphicsRestrictions::isDisabled(GraphicsRestrictions::GR_FORCE_LEGACY_DEVICE) || - !CentralVideoSettings::m_supports_sp)) + (CVS->isGLSL() && !CentralVideoSettings::m_supports_sp))) { Log::warn("irr_driver", "Driver doesn't support shader-based pipeline. " "Re-creating device to workaround the issue.");