mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 07:45:39 +00:00
Reserve mFogTextures
This commit is contained in:
parent
d57d5d9247
commit
0469ecd3c6
1 changed files with 2 additions and 0 deletions
|
@ -140,6 +140,8 @@ namespace MWRender
|
|||
fog->mCenterX = mCenter.x();
|
||||
fog->mCenterY = mCenter.y();
|
||||
|
||||
fog->mFogTextures.reserve(segments.first * segments.second);
|
||||
|
||||
for (int x = 0; x < segments.first; ++x)
|
||||
{
|
||||
for (int y = 0; y < segments.second; ++y)
|
||||
|
|
Loading…
Reference in a new issue