From fb7156331136754683fdbe2de825b88d067de067 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 17 Dec 2018 12:27:35 +0200 Subject: [PATCH] - fixed inconsistent dymanic lights setup with UBO https://forum.zdoom.org/viewtopic.php?t=62585 --- src/hwrenderer/dynlights/hw_lightbuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hwrenderer/dynlights/hw_lightbuffer.cpp b/src/hwrenderer/dynlights/hw_lightbuffer.cpp index a9e24353c6..bb7c78e9bd 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)