mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
Fix a typo, caused occasional white spots on local map render
This commit is contained in:
parent
fb0b57efaa
commit
6dc216af3d
12
extern/shiny/Main/Factory.cpp
vendored
12
extern/shiny/Main/Factory.cpp
vendored
@ -293,14 +293,20 @@ namespace sh
|
||||
while (i>0)
|
||||
{
|
||||
--i;
|
||||
if (m->createForConfiguration (configuration, i) && mListener)
|
||||
if (m->createForConfiguration (configuration, i))
|
||||
{
|
||||
if (mListener)
|
||||
mListener->materialCreated (m, configuration, i);
|
||||
}
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (m->createForConfiguration (configuration, lodIndex) && mListener)
|
||||
mListener->materialCreated (m, configuration, lodIndex);
|
||||
if (m->createForConfiguration (configuration, lodIndex))
|
||||
{
|
||||
if (mListener)
|
||||
mListener->materialCreated (m, configuration, lodIndex);
|
||||
}
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user