diff --git a/src/hwrenderer/dynlights/hw_lightbuffer.cpp b/src/hwrenderer/dynlights/hw_lightbuffer.cpp index a9e24353c..bb7c78e9b 100644 --- a/src/hwrenderer/dynlights/hw_lightbuffer.cpp +++ b/src/hwrenderer/dynlights/hw_lightbuffer.cpp @@ -64,7 +64,6 @@ FLightBuffer::FLightBuffer() mBuffer->SetData(mByteSize, nullptr, false); Clear(); - mLastMappedIndex = UINT_MAX; } FLightBuffer::~FLightBuffer() @@ -75,6 +74,7 @@ FLightBuffer::~FLightBuffer() void FLightBuffer::Clear() { mIndex = 0; + mLastMappedIndex = UINT_MAX; } int FLightBuffer::UploadLights(FDynLightData &data)