mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
Fix WMO visibility culling and renderer initialization guards
This commit is contained in:
parent
ff8ffc3bfb
commit
a30525d7c9
5 changed files with 17 additions and 10 deletions
|
|
@ -261,6 +261,7 @@ M2Renderer::~M2Renderer() {
|
|||
}
|
||||
|
||||
bool M2Renderer::initialize(pipeline::AssetManager* assets) {
|
||||
if (initialized_) { assetManager = assets; return true; }
|
||||
assetManager = assets;
|
||||
|
||||
numAnimThreads_ = std::min(4u, std::max(1u, std::thread::hardware_concurrency() - 1));
|
||||
|
|
@ -635,6 +636,7 @@ bool M2Renderer::initialize(pipeline::AssetManager* assets) {
|
|||
}
|
||||
|
||||
LOG_INFO("M2 renderer initialized");
|
||||
initialized_ = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue