Don't recreate device when legacy context is already created
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user