1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 07:45:39 +00:00

Reserve mFogTextures

This commit is contained in:
Evil Eye 2024-11-24 20:45:29 +01:00
parent d57d5d9247
commit 0469ecd3c6

View file

@ -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)