mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
- fixed inconsistent dymanic lights setup with UBO
https://forum.zdoom.org/viewtopic.php?t=62585
This commit is contained in:
parent
2ce91ea62f
commit
fb71563311
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,6 @@ FLightBuffer::FLightBuffer()
|
||||||
mBuffer->SetData(mByteSize, nullptr, false);
|
mBuffer->SetData(mByteSize, nullptr, false);
|
||||||
|
|
||||||
Clear();
|
Clear();
|
||||||
mLastMappedIndex = UINT_MAX;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FLightBuffer::~FLightBuffer()
|
FLightBuffer::~FLightBuffer()
|
||||||
|
@ -75,6 +74,7 @@ FLightBuffer::~FLightBuffer()
|
||||||
void FLightBuffer::Clear()
|
void FLightBuffer::Clear()
|
||||||
{
|
{
|
||||||
mIndex = 0;
|
mIndex = 0;
|
||||||
|
mLastMappedIndex = UINT_MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
int FLightBuffer::UploadLights(FDynLightData &data)
|
int FLightBuffer::UploadLights(FDynLightData &data)
|
||||||
|
|
Loading…
Reference in a new issue