Don't recreate device when legacy context is already created

This commit is contained in:
Deve
2019-04-11 18:20:23 +02:00
parent 0cbb8e4385
commit 61cb274313

View File

@@ -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.");