mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-27 06:22:43 +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;
|
||||
index = screen->mLights->GetBinding(index, &start, &size);
|
||||
|
||||
if (start != mLastMappedLightIndex)
|
||||
if (start != mLastMappedLightIndex || screen->mPipelineNbr > 1) // If multiple buffers always bind
|
||||
{
|
||||
mLastMappedLightIndex = start;
|
||||
static_cast<GLDataBuffer*>(screen->mLights->GetBuffer())->BindRange(nullptr, start, size);
|
||||
|
|
Loading…
Reference in a new issue