mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-23 20:52:26 +00:00
Fix light binding when using pipeline buffer on OpenGL
This commit is contained in:
parent
1457194e01
commit
146e388430
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ bool FGLRenderState::ApplyShader()
|
||||||
size_t start, size;
|
size_t start, size;
|
||||||
index = screen->mLights->GetBinding(index, &start, &size);
|
index = screen->mLights->GetBinding(index, &start, &size);
|
||||||
|
|
||||||
if (start != mLastMappedLightIndex)
|
if (start != mLastMappedLightIndex || screen->mPipelineNbr > 1) // If multiple buffers always bind
|
||||||
{
|
{
|
||||||
mLastMappedLightIndex = start;
|
mLastMappedLightIndex = start;
|
||||||
static_cast<GLDataBuffer*>(screen->mLights->GetBuffer())->BindRange(nullptr, start, size);
|
static_cast<GLDataBuffer*>(screen->mLights->GetBuffer())->BindRange(nullptr, start, size);
|
||||||
|
|
Loading…
Reference in a new issue