- fixed inconsistent dymanic lights setup with UBO

https://forum.zdoom.org/viewtopic.php?t=62585
This commit is contained in:
alexey.lysiuk 2018-12-17 12:27:35 +02:00
parent 2ce91ea62f
commit fb71563311

View file

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