Work around segfault in LLVM on osx by removing lambda default parameters

It's an ugly hack, but it's the only workaround I could find.
This commit is contained in:
Simon Detheridge
2015-01-14 13:15:23 +00:00
parent fbdd160061
commit 2999cd159f
4 changed files with 22 additions and 13 deletions

View File

@ -667,7 +667,11 @@ bool FractoriumFinalRenderDialog::CreateControllerFromGUI(bool createRenderer)
//First check if a controller has already been created, and if so, save its embers and gracefully shut it down.
if (m_Controller.get())
{
m_Controller->CopyEmberFile(efd);//Convert float to double or save double verbatim;
#ifdef DO_DOUBLE
m_Controller->CopyEmberFile(efd, [&](Ember<double>& ember) { });//Convert float to double or save double verbatim;
#else
m_Controller->CopyEmberFile(efd, [&](Ember<float>& ember) { });//Convert float to double or save double verbatim;
#endif
m_Controller->Shutdown();
}