Renderer: Fix crash when choosing another renderer
This commit is contained in:
parent
b58b35c322
commit
ebb271a089
|
|
@ -94,8 +94,8 @@ namespace Nz
|
||||||
if (chosenImpl)
|
if (chosenImpl)
|
||||||
NazaraDebug("Choose " + impl->QueryAPIString() + " over " + chosenImpl->QueryAPIString());
|
NazaraDebug("Choose " + impl->QueryAPIString() + " over " + chosenImpl->QueryAPIString());
|
||||||
|
|
||||||
|
chosenImpl = std::move(impl); //< Move (and delete previous) implementation before unloading library
|
||||||
chosenLib = std::move(implLib);
|
chosenLib = std::move(implLib);
|
||||||
chosenImpl = std::move(impl);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue