Renderer: Fix crash when choosing another renderer
This commit is contained in:
@@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user