Fix: Fix Uniform buffer doing too many iterations when updating renderer uniforms (#3372)

This commit is contained in:
Nuno Silva 2024-11-11 04:30:45 +00:00 committed by GitHub
parent cc789e83a6
commit 4bc652939f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1313,10 +1313,8 @@ namespace bgfx
m_draw.clear(_flags);
m_bind.clear(_flags);
if (_flags & BGFX_DISCARD_STATE)
{
m_uniformBegin = m_uniformEnd;
}
m_uniformBegin = m_uniformEnd;
}
void EncoderImpl::dispatch(ViewId _id, ProgramHandle _handle, uint32_t _numX, uint32_t _numY, uint32_t _numZ, uint8_t _flags)